link Windows runtime statically
This commit is contained in:
parent
5bfd103702
commit
dd6468bcff
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue