From 7a15da2a8cad650c414d038eeaaea60f3004f5e2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 16 Nov 2024 13:33:01 +0200 Subject: [PATCH] [CMAKE] Fix definition of NDEBUG on MSVC release builds Prevents redefinition warnings. --- sdk/cmake/msvc.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake index eb4973914e0..16f3d3ea159 100644 --- a/sdk/cmake/msvc.cmake +++ b/sdk/cmake/msvc.cmake @@ -167,7 +167,7 @@ endif() if(NOT (_PREFAST_ OR _VS_ANALYZE_)) add_compile_options($<$:/Zi>) endif() -add_compile_definitions($<$:NDEBUG>) +add_compile_definitions($<$:NDEBUG=>) # Hotpatchable images if(ARCH STREQUAL "i386")