aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/foonathan-memory/config-debug.diff
blob: 53fc176f63f1863e9199af74a5df034f2a199812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e736ae5..9aa61eb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -93,6 +93,10 @@ target_compile_definitions(foonathan_memory PUBLIC
 if(NOT MSVC)
 target_compile_features(foonathan_memory PUBLIC cxx_constexpr)
 endif()
+target_compile_definitions(foonathan_memory INTERFACE
+    $<$<CONFIG:DEBUG>:Z_VCPKG_FOONATHAN_MEMORY_DEBUG=1>
+    $<$<NOT:$<CONFIG:DEBUG>>:Z_VCPKG_FOONATHAN_MEMORY_DEBUG=0>
+)
 
 if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
     if("${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")