Skip to content

Commit

Permalink
CMakeLists.txt: Always undefine NDEBUG when building LAIK.
Browse files Browse the repository at this point in the history
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```.
  • Loading branch information
AlexanderKurtz authored and weidendo committed Apr 16, 2018
1 parent 9f403f6 commit 61471c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61471c8

Please sign in to comment.