From 5bfb9aa05473c3f280c452c045fdc67f5ca2d4e4 Mon Sep 17 00:00:00 2001 From: Alayan <25536748+Alayan-stk-2@users.noreply.github.com> Date: Tue, 21 May 2024 15:12:59 +0200 Subject: [PATCH] Fix an error detected by CI - Update MSVC cmakelist to properly add DEBUG --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bd4820ee..e48bcb874 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -519,7 +519,7 @@ endif() if(MSVC) # VS will automatically add NDEBUG for release mode, but only _DEBUG in debug mode. # Since STK uses DEBUG, this is added for debug compilation only: - set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG) + set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS $<$:DEBUG>) else() # All non VS generators used create only a single compile mode, so # compile flags can be simplye be added