[CMake] How to not evaluate variable names ?

fred.antares at free.fr fred.antares at free.fr
Wed Sep 30 02:32:22 EDT 2009


Hi,

I've seen a previous discussion on this subject, but unfortunately, none of the
given solutions (as described on
http://www.cmake.org/Wiki/CMake:VariablesListsStrings) seem to work in my case.

I'm using CMake to generate an XML config file, and one of the tags must have an
argument as follows: args="${serverConfigChanged}". The XML is used by
CruiseControl, and unfortunately, it uses the same variable syntax as CMake. I
tried almost every combination of escaping, double dollars, but couldn't get the
correct output.

Is there some way to achieve that directly from the CMakeList.txt, or should I
do that in the generator code ?

Thanks



More information about the CMake mailing list