Skip to content

Commit

Permalink
Added static linking of the windows runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio authored Jan 13, 2025
1 parent ed19c2c commit 8ad5805
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ target_compile_definitions(pluginval PRIVATE
JUCE_GUI_BASICS_INCLUDE_XHEADERS=1
VERSION="${CURRENT_VERSION}")

if(MSVC)
// Statically link the runtime libraries
target_compile_options(pluginval PRIVATE
$<$<CONFIG:>:/MT>
$<$<CONFIG:Debug>:/MTd>
$<$<CONFIG:Release>:/MT>)
endif()

target_link_libraries(pluginval PRIVATE
juce::juce_audio_devices
juce::juce_audio_processors
Expand Down

0 comments on commit 8ad5805

Please sign in to comment.