mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-12 01:08:16 +03:00
MSVC build: Statically link runtime library
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
# Enable CMAKE_MSVC_RUNTIME_LIBRARY, requires CMake >=3.15
|
||||
cmake_policy(SET CMP0091 NEW)
|
||||
|
||||
project(System3 LANGUAGES CXX)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
@@ -9,6 +12,11 @@ if (MSYS)
|
||||
list(APPEND CMAKE_LIBRARY_PATH $ENV{MINGW_PREFIX}/$ENV{MINGW_CHOST}/lib)
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
# Use statically-linked runtime library.
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif ()
|
||||
|
||||
add_subdirectory(../deps/fmgen fmgen)
|
||||
|
||||
if (ANDROID)
|
||||
|
||||
Reference in New Issue
Block a user