diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/foonathan-memory/config-debug.diff | |
Diffstat (limited to 'vcpkg/ports/foonathan-memory/config-debug.diff')
| -rw-r--r-- | vcpkg/ports/foonathan-memory/config-debug.diff | 15 |
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") |