course, after some tests, your solution works fine! :)
Cédric
- Mail original -
> De: "Petr Kmoch"
> À: "Cedric Doucet"
> Cc: cmake@cmake.org
> Envoyé: Lundi 18 Mai 2015 18:16:16
> Objet: Re: [CMake] Unknown argument in FOREACH
> Hi Cedric.
>
Hi Cedric.
If you check the documentation of foreach() (
http://www.cmake.org/cmake/help/v3.2/command/foreach.html), you will see
there is no "IN item item..." syntax. Either LISTS or ITEMS has to follow
after IN, or IN must be omitted altogether. So either do this:
foreach(LIBRARY IN LISTS L
Hello,
I try to write a loop to donwload and install libraries whose name is contained
in a list.
I wrote these lines from the 45th line of my CMakeLists.txt file:
===
set(LIBRARIES_TO_DOWNLOAD EIGEN)
foreach(LIBRARY IN ${LIBRARIES_T