From 02f46ada9ef85165759f5e58d665510077149ef3 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Dec 2019 20:11:42 +0800 Subject: ... --- include/cru/common/pre_config.hpp | 4 ---- 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 $<$:CRU_DEBUG>) -- cgit v1.2.3