From f48a3812381cd8df002feee2837fba19b2677821 Mon Sep 17 00:00:00 2001 From: drowaudio Date: Mon, 13 Jan 2025 16:22:06 +0000 Subject: [PATCH] Added static linking of the windows runtime (#146) * Added static linking of the windows runtime * Fixed comment style --- CHANGELIST.md | 3 +++ CMakeLists.txt | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index de85fb5..9b846b9 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -1,5 +1,8 @@ # pluginval Change List +### 1.0.5 +- Added static linking to the Windows runtime so it should run on more Windows systems (particularly non-dev machines) + ### 1.0.4 - Limit auval's stress test to 20 seconds (vs 600) [#135] - Fixed incorrect "ALL TESTS PASSED" message when validating out of process [#125] diff --git a/CMakeLists.txt b/CMakeLists.txt index 60371b2..400f890 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 + $<$:/MT> + $<$:/MTd> + $<$:/MT>) +endif() + target_link_libraries(pluginval PRIVATE juce::juce_audio_devices juce::juce_audio_processors