From 5d5d13a8e486f139938af02626023ad24c538ea7 Mon Sep 17 00:00:00 2001 From: pallaswept <132128962+pallaswept@users.noreply.github.com> Date: Thu, 9 May 2024 22:33:04 +1000 Subject: [PATCH] Unique LV2URI Ensure unique LV2 URI string when suffix is provided, to ensure both mono and stereo variants function. --- src/juce_plugin/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/juce_plugin/CMakeLists.txt b/src/juce_plugin/CMakeLists.txt index 94dbdc7c..b138e93e 100644 --- a/src/juce_plugin/CMakeLists.txt +++ b/src/juce_plugin/CMakeLists.txt @@ -30,6 +30,7 @@ else() endif() function(compile_plugins formats suffix default_channels) + string(REPLACE "_" "" URI_SUFFIX "${suffix}") set(PLUGIN_NAME "${PROJECT_NAME}${suffix}") juce_add_plugin(${PLUGIN_NAME} @@ -42,7 +43,7 @@ function(compile_plugins formats suffix default_channels) PLUGIN_CODE Rnn1 # A unique four-character plugin id with at least one upper-case character FORMATS "${formats}" PRODUCT_NAME "rnnoise${suffix}" - LV2URI "https://github.com/werman/noise-suppression-for-voice" + LV2URI "https://github.com/werman/noise-suppression-for-voice#${URI_SUFFIX}" VST_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vst" VST3_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" AU_COPY_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" @@ -135,4 +136,4 @@ endif () if (FORMATS) compile_plugins("${FORMATS}" "" 1) -endif () \ No newline at end of file +endif ()