remove -03 optimization flag for testing to enable debugging

master
wgroeneveld 2 years ago
parent 941aea1241
commit 1f2cfb7234
  1. 3
      test/CMakeLists.txt

@ -14,6 +14,9 @@ SET(CMAKE_EXE_LINKER_FLAGS "${BASE_CMAKE_LINK_FLAGS}")
SET(CMAKE_C_COMPILER gcc)
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)
include_directories(${GTEST_LIBRARY}/include)

Loading…
Cancel
Save