[CMake] @MY_VAR@ are replaced by empty string !

Martin Lütken mlu at danware.dk
Wed Feb 13 05:14:02 EST 2008


SHORT:
It's seems impossible to contruct a string containing something like this:
"@MY_VAR@". The whole thing gets replaced by an empty string regardless whether 
the MY_VAR variable is set or not. It is possible to create a string like "@ MY_VAR@", 
but that is not quite the same.


ACTUAL PROBLEM DESCRIPTION:
I am trying to create cmake files for Gtk+ and asssociated libs among those Pango!

In order to run the glib-mkenums perl script from CMake I need to be able to contruct 
a custom command with strings containing the above "@MY_VAR@" construct which the script 
uses in a similar fashion as CMake does in it's CONFIGURE_FILE command.

Any suggestions? Or do I need to file a bug-report ?

-Martin Lütken



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080213/be9de2b4/attachment.html


More information about the CMake mailing list