I try to set a preprocessor macro in the command line of CMake. I\'ve tried:
set generator=\"Visual Studio 8 2005\" set params=-D MY_MACRO=1 cmake.exe -G %ge
Try this: -D CMAKE_CXX_FLAGS=/DMY_MACRO=1
-D CMAKE_CXX_FLAGS=/DMY_MACRO=1