From d163b37cafc46ab24412e4cf92d14f54e2aa97a6 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Wed, 18 May 2022 18:57:45 +0100 Subject: [PATCH] Squash NDEBUG for RelWithDebInfo build type too. --- cmake/setup.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/setup.cmake b/cmake/setup.cmake index 26079f31..0ad84df9 100644 --- a/cmake/setup.cmake +++ b/cmake/setup.cmake @@ -4,6 +4,8 @@ # give a #error if this manoeuvre doesn't do what it needs to. string(REPLACE "/DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") string(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") +string(REPLACE "/DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE}") +string(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE}") set(PUTTY_IPV6 ON CACHE BOOL "Build PuTTY with IPv6 support if possible")