remove -03 optimization flag for testing to enable debugging

This commit is contained in:
wgroeneveld 2020-07-13 11:06:17 +02:00
parent 941aea1241
commit 1f2cfb7234
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ SET(CMAKE_EXE_LINKER_FLAGS "${BASE_CMAKE_LINK_FLAGS}")
SET(CMAKE_C_COMPILER gcc) SET(CMAKE_C_COMPILER gcc)
SET(CMAKE_CXX_COMPILER g++) SET(CMAKE_CXX_COMPILER g++)
# remove -03 optimization flag otherwise debugging will be annoying as hell
SET(CMAKE_CXX_FLAGS "-Wno-narrowing")
add_definitions(-DCODE_COMPILED_AS_PART_OF_TEST) add_definitions(-DCODE_COMPILED_AS_PART_OF_TEST)
include_directories(${GTEST_LIBRARY}/include) include_directories(${GTEST_LIBRARY}/include)