From c9872ce3a615140b770ca721a6be608b2aba30a8 Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 14 Apr 2020 13:31:54 +0100 Subject: [PATCH] CMake: Allow users to query which plugin targets were created --- extras/Build/CMake/JUCEUtils.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index 81030b929a..bb34e28cc7 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -1437,8 +1437,14 @@ function(_juce_configure_plugin_targets target) if(kind IN_LIST enabled_formats) _juce_link_plugin_wrapper(${target} ${kind}) endif() + + if(TARGET ${target}_${kind}) + list(APPEND active_plugin_targets ${target}_${kind}) + endif() endforeach() + set_target_properties(${target} PROPERTIES JUCE_ACTIVE_PLUGIN_TARGETS "${active_plugin_targets}") + if(TARGET ${target}_Standalone) _juce_configure_app_bundle(${target} ${target}_Standalone) endif()