[cmake] Run Debug checks also in RelWithDebInfo build mode

This commit is contained in:
Nils Wentzell 2023-09-27 11:12:45 -04:00
parent 93ee35d25e
commit f4fb3278ee
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ target_include_directories(${PROJECT_NAME}_c SYSTEM INTERFACE $<INSTALL_INTERFAC
target_compile_definitions(${PROJECT_NAME}_c PUBLIC
APP4TRIQS_GIT_HASH=${PROJECT_GIT_HASH}
TRIQS_GIT_HASH=${TRIQS_GIT_HASH}
$<$<CONFIG:Debug>:APP4TRIQS_DEBUG>
$<$<CONFIG:Debug>:TRIQS_DEBUG>
$<$<CONFIG:Debug>:TRIQS_ARRAYS_ENFORCE_BOUNDCHECK>
$<$<CONFIG:Debug,RelWithDebInfo>:APP4TRIQS_DEBUG>
$<$<CONFIG:Debug,RelWithDebInfo>:TRIQS_DEBUG>
$<$<CONFIG:Debug,RelWithDebInfo>:TRIQS_ARRAYS_ENFORCE_BOUNDCHECK>
)
# Install library and headers