[CMake] FOREACH var problem
Xavier Larrode
Xavier.Larrode at irisa.fr
Wed Aug 23 08:04:37 EDT 2006
Hi all,
I have a variable with different lib on, separate by a space and i would
like to use it on a FOREACH.
So i tried to seperate it by an \n but it's not working.
Any idea how to it ?
FOREACH(lib ${OMK_LIBS})
FIND_LIBRARY(GOT ${lib} ${OMK_LIBDIR})
IF(GOT)
TARGET_LINK_LIBRARIES(PieMenu ${lib})
ELSE(GOT)
MESSAGE("ERROR could not find ${lib} on path : ${OMK_LIBDIR}")
ENDIF(GOT)
ENDFOREACH(lib)
And OMK_LIBS : X11 Xmu Xext Xi m Xxf86vm
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xavier.Larrode.vcf
Type: text/x-vcard
Size: 169 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060823/7852e7d7/Xavier.Larrode.vcf
More information about the CMake
mailing list