force cmake 3.20 to not override msvc lib selection

This commit is contained in:
Dethrace Labs 2026-01-06 14:15:24 +13:00
parent 648ff0bdbb
commit ef2b051e47
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,9 @@ if(MSVC_42_FOR_RECCMP)
set(DETHRACE_PLATFORM_SDL3 OFF)
set(BRENDER_BUILD_DRIVERS OFF)
# Allow us to explicitly set "/MLd"
set(CMAKE_MSVC_RUNTIME_LIBRARY "" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_DEBUG "/Od /Oi /Zi /MLd")
include("reccmp")

View File

@ -187,6 +187,7 @@ endif()
# Create our main game binary.
if(MSVC_42_FOR_RECCMP)
add_executable(dethrace WIN32)
set(CMAKE_C_FLAGS_DEBUG "/Oi /Zi /MLd /G5")
add_compile_definitions(_DEBUG)