mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
build: Audit contracts checking enabled for a Debug build
This commit is contained in:
@@ -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($<$<CONFIG:Debug>:gsl_CONFIG_CONTRACT_CHECKING_AUDIT>)
|
||||
|
||||
# enable static analysis
|
||||
#enable_clang_tidy()
|
||||
#enable_iwyu()
|
||||
|
Reference in New Issue
Block a user