Skip to content

Commit

Permalink
Use static MSVC Runtime Library (#718)
Browse files Browse the repository at this point in the history
I think its best if we use the static runtime to remove more dynamic dependencies that we can't anticipate.
  • Loading branch information
Jan200101 authored Jun 22, 2024
1 parent 3c87644 commit 225eb18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
cmake_minimum_required(VERSION 3.15)
cmake_policy(
SET
CMP0091
NEW
)

project(
Northstar
Expand All @@ -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)

Expand Down

0 comments on commit 225eb18

Please sign in to comment.