[cmake] Do not define DEBUG macros for RelWithDebInfo builds

This commit is contained in:
Nils Wentzell 2024-03-04 17:25:14 -05:00
parent 7bac90fdcb
commit 9c6917526c
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,RelWithDebInfo>:APP4TRIQS_DEBUG>
$<$<CONFIG:Debug,RelWithDebInfo>:TRIQS_DEBUG>
$<$<CONFIG:Debug,RelWithDebInfo>:TRIQS_ARRAYS_ENFORCE_BOUNDCHECK>
$<$<CONFIG:Debug>:APP4TRIQS_DEBUG>
$<$<CONFIG:Debug>:TRIQS_DEBUG>
$<$<CONFIG:Debug>:TRIQS_ARRAYS_ENFORCE_BOUNDCHECK>
)
# Install library and headers