diff options
-rw-r--r-- | include/cru/common/pre_config.hpp | 4 | ||||
-rw-r--r-- | src/common/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/cru/common/pre_config.hpp b/include/cru/common/pre_config.hpp index 5fcef218..4bccef1d 100644 --- a/include/cru/common/pre_config.hpp +++ b/include/cru/common/pre_config.hpp @@ -5,8 +5,4 @@ #pragma warning(disable : 4250) #endif -#ifdef _DEBUG -#define CRU_DEBUG -#endif - #define _CRT_SECURE_NO_WARNINGS diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 516d5f1b..a6497222 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -11,3 +11,5 @@ target_sources(cru_base PUBLIC ${CRU_BASE_INCLUDE_DIR}/self_resolvable.hpp ) target_include_directories(cru_base PUBLIC ${CRU_INCLUDE_DIR}) + +target_compile_definitions(cru_base PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>) |