Statically link MSVC runtime

This commit is contained in:
Martin Natano
2022-06-03 19:47:45 +02:00
parent 4de9bd7c7f
commit 7b9a799cdb
7 changed files with 6 additions and 40 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ include("${SM_CMAKE_DIR}/SMDefs.cmake")
# Put the predefined targets in separate groups.
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Set up the linker flags for MSVC builds.
configure_msvc_runtime()
# Select static MSVC runtime instead of DLL
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# Checks the standard include directories for c-style headers. We may use C++ in
# this project, but the check works better with plain C headers.