SET(CMAKE_CXX_FLAGS "-Wall") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Wall -O2 -g") SET(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2") SET(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb -O0" CACHE STRING "Debug options." FORCE)
An example from my configuration. Best Regards, Laszlo Papp On Sat, Oct 16, 2010 at 9:38 AM, Jochen Wilhelmy <j.wilhe...@arcor.de> wrote: > Hi! > > how do I define a macro (e.g. _DEBUG) only for the debug configuration? > > Thanks, > > -Jochen > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake