[CMake] Double @-substitution and configure_file()??

Marcel Loose loose at astron.nl
Mon Jan 18 10:28:30 EST 2010


Hi all,

Is it possible to somehow do a double @-substitution when using, e.g.,
configure_file, similar to a double ${${...}} construct.

$ cat myvar.cmake
message(STATUS "@MYVAR@=@@MYVAR@@")
message(STATUS "${MYVAR}=${${MYVAR}}")

$ cmake -D MYVAR=Hello -D Hello="Hello World" -P myvar.cmake
-- Hello=@Hello@
-- Hello=Hello World

Apparently this doesn't produce the same results.

Best regards,
Marcel Loose.




More information about the CMake mailing list