From 9090ee80ab764568b64091cd4980888936c16a27 Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Mon, 17 Aug 2026 01:49:44 -0700 Subject: [PATCH] fix building in debug on windows --- mods/randomizer/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/randomizer/CMakeLists.txt b/mods/randomizer/CMakeLists.txt index 7c25b203bb..c85aca27a5 100644 --- a/mods/randomizer/CMakeLists.txt +++ b/mods/randomizer/CMakeLists.txt @@ -13,6 +13,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) endif () endif () +# Synchronize MSVC runtime library in debug builds +if (MSVC AND CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") +endif () + # Generator dependencies, linked statically into the mod library (no CRT crossing). include(FetchContent) set(CMAKE_POSITION_INDEPENDENT_CODE ON)