[CMake] INSTALL(CODE ...)
David Cole
david.cole at kitware.com
Mon Aug 14 09:02:45 EDT 2006
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