We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e41cf commit 5a5c4a1Copy full SHA for 5a5c4a1
CMakeLists.txt
@@ -10,14 +10,9 @@ endif()
10
11
option(MSVC_STATIC "Use static runtime libraries with MSVC" OFF)
12
13
-if(MSVC AND MSVC_STATIC)
+if(MSVC_STATIC)
14
message(STATUS "MSVC: Setting MT/MTd")
15
- # add_compile_options(
16
- # $<$<CONFIG:>:/MT>
17
- # $<$<CONFIG:Debug>:/MTd>
18
- # $<$<CONFIG:Release>:/MT>
19
- # )
20
- set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
21
endif()
22
23
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
0 commit comments