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 f48a381 commit 3253dadCopy full SHA for 3253dad
CMakeLists.txt
@@ -84,12 +84,9 @@ target_compile_definitions(pluginval PRIVATE
84
JUCE_GUI_BASICS_INCLUDE_XHEADERS=1
85
VERSION="${CURRENT_VERSION}")
86
87
-if(MSVC)
88
- # Statically link the runtime libraries
89
- target_compile_options(pluginval PRIVATE
90
- $<$<CONFIG:>:/MT>
91
- $<$<CONFIG:Debug>:/MTd>
92
- $<$<CONFIG:Release>:/MT>)
+if(MSVC AND NOT CMAKE_MSVC_RUNTIME_LIBRARY)
+ # Default to statically linking the runtime libraries
+ set_property(TARGET pluginval PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
93
endif()
94
95
target_link_libraries(pluginval PRIVATE
0 commit comments