From 3bcc99dd95be4bf17f3d5e77438d1113cdc68cc4 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 14 Nov 2023 00:06:53 +0000 Subject: [PATCH] Fix CMake config for static MSVC builds --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1af157c840..e1f9705447 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,7 +311,6 @@ if(MSVC) # If target -static is used, switch our project to static (/MT) too. # If the target ends on -static-md, it will remain dynamic (/MD). if(VCPKG_TARGET_TRIPLET MATCHES "-static" AND NOT VCPKG_TARGET_TRIPLET MATCHES "-md") - set_property(TARGET openttd_lib PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") set_property(TARGET openttd PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") set_property(TARGET openttd_test PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif()