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)