I searched the archives and couldn't find any good information about this
task, which I would assume is important to many people. I need to set
options in visual studio that are different in debug and release modes. For
example I need to set preprocessor defines, change compiler flags, link with
different libraries, and other settings.

Is there anyway to do something like this.

IF ( RELEASE )
    ADD_DEFINITIONS( -DREL1 )
ELSEIF ( DEBUG )
    ADD_DEFINITIONS( -DDEB1 )
ENDIF ()
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to