File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
121121 else ()
122122 string (APPEND CMAKE_EXE_LINKER_FLAGS " -rdynamic" )
123123 endif ()
124- string (APPEND CMAKE_CXX_FLAGS_DEBUG " -Og" )
124+ string (PREPEND CMAKE_CXX_FLAGS_DEBUG "-Og " )
125125 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wstrict-null-sentinel>)
126126 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Woverloaded-virtual>)
127127 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-fno-new-ttp-matching>)
@@ -135,7 +135,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
135135elseif (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
136136 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_EXPORTS_C_FLAG} " )
137137 string (APPEND CMAKE_LINKER_FLAGS " -rdynamic -export-dynamic ${CMAKE_EXE_EXPORTS_C_FLAG} " )
138- string (APPEND CMAKE_CXX_FLAGS_DEBUG " -g " )
138+ string (PREPEND CMAKE_CXX_FLAGS_DEBUG "-g " )
139139 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-inconsistent-missing-override>)
140140 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-mismatched-tags>)
141141 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-unused-private -field>)
You can’t perform that action at this time.
0 commit comments