From 02c745e1860f593f993fd141938fd53f90327be1 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Thu, 19 May 2022 23:23:14 +0100 Subject: [PATCH] Use correct flags for RelWithDebInfo. Bug introduced in d163b37caf. (Ahem.) --- cmake/setup.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/setup.cmake b/cmake/setup.cmake index 0ad84df9..7a650771 100644 --- a/cmake/setup.cmake +++ b/cmake/setup.cmake @@ -4,8 +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}") +string(REPLACE "/DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") +string(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") set(PUTTY_IPV6 ON CACHE BOOL "Build PuTTY with IPv6 support if possible")