diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bdf0343..13c73ed7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(warnings) set_warnings() +# set all contracts checking in a Debug build +add_compile_definitions($<$:gsl_CONFIG_CONTRACT_CHECKING_AUDIT>) + # enable static analysis #enable_clang_tidy() #enable_iwyu()