From 1f2cfb723489f6c062c1edc3766b2b8b2a298dd4 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Mon, 13 Jul 2020 11:06:17 +0200 Subject: [PATCH] remove -03 optimization flag for testing to enable debugging --- test/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b914ce7..0e16807 100644 --- a/test/CMakeLists.txt +++ b/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)