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)