From dd6468bcff4b3c4646ebbcfc617a517c108c9017 Mon Sep 17 00:00:00 2001 From: mchughalex <25671999+mchughalex@users.noreply.github.com> Date: Tue, 30 Jun 2026 23:33:32 +0100 Subject: [PATCH] link Windows runtime statically --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1df3c6f..a439ee5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,16 @@ cmake_minimum_required(VERSION 3.25) +if(POLICY CMP0091) + cmake_policy(SET CMP0091 NEW) +endif() + +option(SKATE3_STATIC_MSVC_RUNTIME + "Link Windows MSVC-ABI builds with the static Visual C++ runtime" + ON) +if(SKATE3_STATIC_MSVC_RUNTIME) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +endif() + project(skate3 VERSION 1.0.1 LANGUAGES CXX) if(WIN32)