Skip to content

Commit 8ad5805

Browse files
authored
Added static linking of the windows runtime
1 parent ed19c2c commit 8ad5805

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ target_compile_definitions(pluginval PRIVATE
8484
JUCE_GUI_BASICS_INCLUDE_XHEADERS=1
8585
VERSION="${CURRENT_VERSION}")
8686

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>)
93+
endif()
94+
8795
target_link_libraries(pluginval PRIVATE
8896
juce::juce_audio_devices
8997
juce::juce_audio_processors

0 commit comments

Comments
 (0)