[CMake] Passing a CMake list "as is" to a custom target
Hauke Heibel
hauke.heibel at googlemail.com
Wed Jun 22 16:24:04 EDT 2011
On Wed, Jun 22, 2011 at 10:09 PM, Michael Hertling <mhertling at online.de> wrote:
> You might use -DMY_VARIABLE="${ARGUMENTS}" without VERBATIM, and
> SEPARATE_ARGUMENTS(MY_VARIABLE) in Foo.cmake. This doesn't prevent
> the list's conversion, but seems a bit smarter than a FOREACH loop.
I considered this but since MY_VARIABLE contains paths which may
contain white spaces, I explicitly chose the asterisk because it
cannot be part of a path.
Nonetheless thanks for the reply.
- Hauke
More information about the CMake
mailing list