Skip to content

Commit 08cb687

Browse files
committed
fix: msvc runtime
1 parent 787c20e commit 08cb687

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.15)
2+
set(CMAKE_POLICY_DEFAULT_CMP0091 NEW)
3+
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
24

35
project(dxfplotter)
46

@@ -15,7 +17,6 @@ set(CMAKE_AUTORCC ON)
1517
set(CMAKE_AUTOUIC OFF)
1618
set(CMAKE_INCLUDE_CURRENT_DIR ON)
1719

18-
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
1920

2021
set(BUILD_TESTS OFF)
2122
set(BUILD_SAMPLES OFF)
@@ -26,7 +27,7 @@ set(BUILD_FLATZINC OFF)
2627
set(USE_HIGHS OFF)
2728
set(JUST_INSTALL_CEREAL ON)
2829

29-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
30+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
3031

3132
# Compilation flag with all warnings.
3233
if(MSVC)

0 commit comments

Comments
 (0)