link Windows runtime statically

This commit is contained in:
mchughalex 2026-06-30 23:33:32 +01:00
parent 5bfd103702
commit dd6468bcff

View file

@ -1,5 +1,16 @@
cmake_minimum_required(VERSION 3.25) 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$<$<CONFIG:Debug>:Debug>")
endif()
project(skate3 VERSION 1.0.1 LANGUAGES CXX) project(skate3 VERSION 1.0.1 LANGUAGES CXX)
if(WIN32) if(WIN32)