[CMake] INSTALL(CODE ...)

Christian Lang christian.lang at uni-bielefeld.de
Mon Aug 14 10:41:43 EDT 2006


Hello,

I tried it, but it did not work either ...

> Try putting the ${DATE} inside the quotes...
>
> Christian Lang wrote:
>
>> Hello,
>>
>> I want to add some custom install code via INSTALL(CODE <code>). How 
>> can I set variables inside such a INSTALL(CODE ...) statement? I 
>> tried something like
>>
>> INSTALL(CODE "
>>  SET(DATE \"today\")
>>  MESSAGE(\"Date = \" ${DATE})
>> ")
>>
>> The output is "Date =" and not "Date = today". It seems like one 
>> cannot set variables this way. Does anybody know where my mistake is?
>>
>> Thanks a lot,
>> Christian Lang
>>
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>




More information about the CMake mailing list