[CMake] Problem in escape sequence while add_definition.
Ashish Mahamuni
mahamuni.ashish at gmail.com
Fri Mar 4 02:00:51 EST 2011
I am using cmake 2.8 version.
My cmake contains following statements.
cmake_policy(SET CMP0005 NEW)
add_definitions(
-DSTORE="\"XYZ\""
)
I am using VS 8 (2005). cmake writes the build file(vcproj) successfully
without any warning
When I see, vcproj. It contains
\"\&qout;XYZ\"\&qout;
So basically, my C file expects macro as "XYZ", but its receiving ""XYZ""
I want cmake to write
"\&qout;XYZ\"&qout;
in my vcproj file.
I tried different combinations of "" but no luck.
any help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110304/59c8019e/attachment.htm>
More information about the CMake
mailing list