Try

SET( CMAKE_CXX_FLAGS "-D DEF1 -D DEF2 -D DEF3 -D DEF4")


On Nov 26, 2007 2:03 PM, Jesse Corrington <[EMAIL PROTECTED]>
wrote:

> I am using CMAKE_CXX_FLAGS to set defines because I want to be able to set
> different ones for debug and release using CMAKE_CXX_FLAGS_DEBUG/RELEASE,
> which the other add define command doesn't seem to support. What I am doing
> doesn't seem to be working. Here is what I have:
>
> SET( CMAKE_CXX_FLAGS
>     -D DEF1
>     -D DEF2
>     -D DEF3
>     -D DEF4
>
> when I open the visual studio 2005 project file and look under the
> preprocessor setting I see the defines like this:
>
> ";_WANT_MEMPOOL_OPTIMIZATION;-D;_HAS_NETWORK;-D;_WATCH_FILESYTEM;-D;_CRT_SECURE_NO_DEPRECATE;-D;USE_PCH"
>
>
> How can I make this work correctly.
>
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to