Hi

I have a project containing a subfolder, src. Both, the main folder and the 
subfolder, contain CMakeLists.txt files. In the CMakeLists.txt of the main 
folder contains the following code

IF ("Debug" STREQUAL "${CMAKE_BUILD_TYPE}")
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_DEBUG_ENABLE_LOG -ggdb" )
ENDIF()

However, when compiling with 'make VERBOSE=1' I notice that the first compile 
options are mine, but then follows '-O2 -g' which are somehow set by cmake and 
don't allow me to compile in the debug mode. Can anyone explain why this 
happens ?

-- 
Bogdan
--

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

Reply via email to