diff --git a/CMakeLists.txt b/CMakeLists.txt index e7fa35b9ecc..3812c207b5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -235,6 +235,15 @@ include(ProcessConfigurations) include(TryAppendCXXFlags) include(TryAppendLinkerFlag) +# Redefine/adjust per-configuration flags. +target_compile_definitions(core_interface_debug INTERFACE + DEBUG + DEBUG_LOCKORDER + DEBUG_LOCKCONTENTION + RPC_DOC_CHECK + ABORT_ON_FAILED_ASSUME +) + if(WIN32) #[=[ This build system supports two ways to build binaries for Windows. diff --git a/cmake/module/ProcessConfigurations.cmake b/cmake/module/ProcessConfigurations.cmake index 7e2fc0080e9..52fca3cd1f7 100644 --- a/cmake/module/ProcessConfigurations.cmake +++ b/cmake/module/ProcessConfigurations.cmake @@ -119,14 +119,6 @@ endfunction() set_default_config(RelWithDebInfo) -# Redefine/adjust per-configuration flags. -target_compile_definitions(core_interface_debug INTERFACE - DEBUG - DEBUG_LOCKORDER - DEBUG_LOCKCONTENTION - RPC_DOC_CHECK - ABORT_ON_FAILED_ASSUME -) # We leave assertions on. if(MSVC) remove_cxx_flag_from_all_configs(/DNDEBUG)