From ef2b051e47f99e9ad7967cbaf6ccba48e00bf2fe Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Tue, 6 Jan 2026 14:15:24 +1300 Subject: [PATCH] force cmake 3.20 to not override msvc lib selection --- CMakeLists.txt | 3 +++ src/DETHRACE/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0465004d..488b7827 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/DETHRACE/CMakeLists.txt b/src/DETHRACE/CMakeLists.txt index 72352cb9..97d51d53 100644 --- a/src/DETHRACE/CMakeLists.txt +++ b/src/DETHRACE/CMakeLists.txt @@ -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)