aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/foonathan-memory/config-debug.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/foonathan-memory/config-debug.diff')
-rw-r--r--vcpkg/ports/foonathan-memory/config-debug.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/foonathan-memory/config-debug.diff b/vcpkg/ports/foonathan-memory/config-debug.diff
new file mode 100644
index 0000000..53fc176
--- /dev/null
+++ b/vcpkg/ports/foonathan-memory/config-debug.diff
@@ -0,0 +1,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")