diff --git a/CMakeLists.txt b/CMakeLists.txt index f939b5184..99ec5830e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,7 +237,8 @@ endif() # Handle debugmode compiles (this will require further work for proper WIN32-setups) if(UNIX) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g") endif()