We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00fca12 commit fe1ff06Copy full SHA for fe1ff06
1 file changed
CMakeLists.txt
@@ -9,14 +9,8 @@ set(CMAKE_CXX_STANDARD 17)
9
if (POLICY CMP0091)
10
cmake_policy(SET CMP0091 NEW)
11
if (WIN32)
12
- # Single-config generators (Ninja, Make): pick based on CMAKE_BUILD_TYPE
13
- if (NOT CMAKE_CONFIGURATION_TYPES)
14
- if (CMAKE_BUILD_TYPE STREQUAL "Debug")
15
- set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebugDLL" CACHE STRING "" FORCE)
16
- else()
17
- set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL" CACHE STRING "" FORCE)
18
- endif()
19
+ # Use static MSVC CRT
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
20
endif ()
21
22
0 commit comments