aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-12 20:11:42 +0800
committercrupest <crupest@outlook.com>2019-12-12 20:11:42 +0800
commit02f46ada9ef85165759f5e58d665510077149ef3 (patch)
tree02ab3dfd0598133c679ada7836b89af2fcf8b2f1
parente69911a8b161b81ce3f7b209175766da2b7b3d4b (diff)
downloadcru-02f46ada9ef85165759f5e58d665510077149ef3.tar.gz
cru-02f46ada9ef85165759f5e58d665510077149ef3.tar.bz2
cru-02f46ada9ef85165759f5e58d665510077149ef3.zip
...
-rw-r--r--include/cru/common/pre_config.hpp4
-rw-r--r--src/common/CMakeLists.txt2
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>)