[cmake] set MSVC runtime for SDL client

This commit is contained in:
Armin Novak
2023-07-26 14:47:08 +02:00
committed by Martin Fleisz
parent c9f55a964d
commit 4f0ca73be6
2 changed files with 22 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ endif()
if(MSVC)
include(MSVCRuntime)
if(NOT DEFINED MSVC_RUNTIME)
set(MSVC_RUNTIME "dynamic")
set(MSVC_RUNTIME "dynamic" CACHE STRING "MSVC runtime type [dynamic|static]")
endif()
if(MSVC_RUNTIME STREQUAL "static")
if(BUILD_SHARED_LIBS)