[CMake] FOREACH var problem

Xavier Larrode Xavier.Larrode at irisa.fr
Wed Aug 23 09:14:00 EDT 2006


the solution is to put a ";" ...
Make me feel alone ;)
Xavier Larrode a écrit :
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-------------- 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/eeb86919/Xavier.Larrode-0001.vcf


More information about the CMake mailing list