[CMake] output a string instead of a list
Brandon J. Van Every
bvanevery at gmail.com
Mon Jun 12 06:13:27 EDT 2006
Alexander Neundorf wrote:
>> Von: "Brandon J. Van Every" <bvanevery at gmail.com>
>>
>>
>>>
>>> Bah. I finally found the problem. All of my string handling was
>>>
>> correct. I was passing arguments to a CMake script using
>> INCLUDE(${CMAKE_CURRENT_BINARY_DIR}/vars.cmake) because there are no
>> command line arguments for scripts in CMake 2.4.2.
>>
>
> You mean cmake -P myscript.cmake -DSOMEVAR=foo ?
> This works, it is the same as when you use -D when calling cmake to configure your project. It should really work.
> I use it this way and the only issues I had were with spaces in the arguments, i.e. they have to be escaped properly.
>
Last I read the archives, and last I checked it on the command line,
this doesn't work in 2.4.2. You sure you're not using a CVS CMake?
Cheers,
Brandon Van Every
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060612/03908bb0/attachment.htm
More information about the CMake
mailing list