Skip to content

Commit c5c1c0b

Browse files
HackerFoovaughnbetz
authored andcommitted
Make it easier to use GDB
Signed-off-by: Dusty DeWeese <[email protected]>
1 parent 994135f commit c5c1c0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ else()
109109
message(STATUS "Building with IPO: off")
110110
endif()
111111

112+
#
113+
# Build type flags
114+
#
115+
116+
if(NOT MSVC)
117+
# for GCC and Clang
118+
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g3")
119+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
120+
endif()
121+
112122
#
113123
# Warning flags
114124
#

0 commit comments

Comments
 (0)