From fe335b656a6c8107c6eedaff7685a34678595e38 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 18 Feb 2021 20:15:52 +0100 Subject: [PATCH] build: Audit contracts checking enabled for a Debug build --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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()