Skip to content

Commit c30d845

Browse files
committed
feat: Use CMAKE_MSVC_RUNTIME_LIBRARY for runtime selection in MSVC(#1198)
Previously, when BUILD_SHARED_LIBS was set to FALSE (OFF), the runtime library was forcibly set to MultiThreaded. This commit replaces that behavior by using the CMAKE_MSVC_RUNTIME_LIBRARY option, allowing users to select between MultiThreaded and MultiThreadedDLL as a build option.
1 parent 397d85a commit c30d845

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ if (MSVC)
8282
message(STATUS "Build windows dynamic libs.")
8383
else()
8484
# Add this to build windows pure static library.
85-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
8685
message(STATUS "Build windows static libs.")
8786
endif()
8887
endif()

0 commit comments

Comments
 (0)