Anyone knows?
Seems by default all libraries/executables are built in debug mo开发者_运维问答de.
Can be controlled by setting CMAKE_BUILD_TYPE
variable, see cmake docs.
an alternative solution is: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
or set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
if you are using C++ or C.
精彩评论