Fix an error detected by CI

- Update MSVC cmakelist to properly add DEBUG
This commit is contained in:
Alayan 2024-05-21 15:12:59 +02:00
parent 7df170b394
commit 5bfb9aa054
No known key found for this signature in database

View File

@ -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 $<$<CONFIG:Debug>:DEBUG>)
else()
# All non VS generators used create only a single compile mode, so
# compile flags can be simplye be added