We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c19bf4 commit a989898Copy full SHA for a989898
1 file changed
CMakeLists.txt
@@ -42,6 +42,14 @@ endif()
42
43
message("current binary directory: ${CMAKE_CURRENT_BINARY_DIR}")
44
45
+if(MSVC)
46
+ cmake_policy(SET CMP0091 NEW)
47
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
48
+endif()
49
+
50
+# For extra safety, you can also enforce the CUDA runtime to be shared/dynamic:
51
+# set(CMAKE_CUDA_RUNTIME_LIBRARY SHARED)
52
53
project(
54
multi
55
HOMEPAGE_URL "https://gitlab.com/correaa/boost-multi"
0 commit comments