When I use add_definitions I must
pass for nmake and the IDE different
string macro definitions:
1. source code: #define BOOST_USER_CONFIG=<config.h>
if(MSVC_IDE)
add_definitions(-DBOOST_USER_CONFIG=<\;config.h>\;)
else(MSVC_IDE)
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
endif(MSVC_IDE)
2. source code: #define DLOCALEDIR="."
if(MSVC_IDE)
add_definitions(-DLOCALEDIR=".")
else(MSVC_IDE)
add_definitions(-DLOCALEDIR=\\".\\" )
endif(MSVC_IDE)
Is there a simpler solution or is it a bug?
Peter
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake