[CMake] INSTALL(CODE ...)
Christian Lang
christian.lang at uni-bielefeld.de
Mon Aug 14 07:26:30 EDT 2006
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
More information about the CMake
mailing list