From 61471c8ee8670548ecf62ee478861bbff8c64ecd Mon Sep 17 00:00:00 2001 From: Alexander Kurtz Date: Sun, 15 Apr 2018 15:04:18 +0200 Subject: [PATCH] CMakeLists.txt: Always undefine NDEBUG when building LAIK. When using CMake, the recommend way to get an optimized build is to do a release build via ```-D CMAKE_BUILD_TYPE=Release```. This adds ```-O3``` but also ```-DNDEBUG```, which unfortunately currently breaks LAIK (see issue #92). Therefore, we now always undefine ```NDEBUG``` in the main ```CMakeLists.txt``` file until LAIK is fixed to work with ```NDEBUG```. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d79dc72b..dd146b66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ enable_testing () # Set some global defaults add_compile_options ( "-pedantic" + "-UNDEBUG" # Work around https://github.com/envelope-project/laik/issues/92 "-Wall" "-Werror" "-Wextra"