aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-06-22 12:03:04 +0200
committerGitHub <noreply@github.com>2024-06-22 12:03:04 +0200
commit225eb1849a7b4ef019c04e4aa12b85295e301c28 (patch)
tree04d7193e51be8b2e599a67e1470c097f6397043f
parent3c876448164e8d611d8b3c14cff481712b5391a8 (diff)
downloadNorthstarLauncher-1.25.3-rc1.tar.gz
NorthstarLauncher-1.25.3-rc1.zip
Use static MSVC Runtime Library (#718)v1.25.3-rc1
I think its best if we use the static runtime to remove more dynamic dependencies that we can't anticipate.
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 23a8b7f5..a9646ae1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,9 @@
cmake_minimum_required(VERSION 3.15)
+cmake_policy(
+ SET
+ CMP0091
+ NEW
+ )
project(
Northstar
@@ -20,6 +25,7 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_VS_PLATFORM_TOOLSET v143)
+set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
# Deal with MSVC incompatiblity
add_compile_definitions(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)