[CMake] -g3 ?

Luca Cappa luca.cappa at i-medlab.com
Wed Feb 23 05:15:52 EST 2005


Hello,

I'm trying to get the flag "-g3" during the compilation process. If I 
use in my CMakeLists.txt file this statement

SET(CMAKE_BUILD_TYPE Debug)

I will get only the "-g" flag, and not the "-g3" one: in poor words I 
dont know how to control the level of the debugging information.
Actually I'm using this hack:

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3")

Any hints to do this better?

Greetings,
Luca


More information about the CMake mailing list