commit fc2087729c1a5faa173c14db79fe488efe9fd87c parent eba5f4ecca395ec9a844b24008a548da69ac2f46 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Thu, 23 Sep 2021 18:32:31 +0200 do not skip VST3 packaging if VST2 sdk is missing Diffstat:
M | CMakeLists.txt | | | 18 | ++++++++++-------- |
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -28,17 +28,19 @@ if(${PROJECT_NAME}_BUILD_JUCEPLUGIN) set(JUCE_ENABLE_MODULE_SOURCE_GROUPS ON CACHE BOOL "" FORCE) add_subdirectory(source/JUCE) add_subdirectory(source/jucePlugin) - if(JUCE_GLOBAL_VST2_SDK_PATH) - if(MSVC OR APPLE) + if(MSVC OR APPLE) + if(JUCE_GLOBAL_VST2_SDK_PATH) install(TARGETS jucePlugin_VST DESTINATION . COMPONENT VST2) - install(TARGETS jucePlugin_VST3 DESTINATION . COMPONENT VST3) - if(APPLE) - install(TARGETS jucePlugin_AU DESTINATION . COMPONENT AU) - endif() - elseif(UNIX) + endif() + install(TARGETS jucePlugin_VST3 DESTINATION . COMPONENT VST3) + if(APPLE) + install(TARGETS jucePlugin_AU DESTINATION . COMPONENT AU) + endif() + elseif(UNIX) + if(JUCE_GLOBAL_VST2_SDK_PATH) install(TARGETS jucePlugin_VST LIBRARY DESTINATION /usr/local/lib/lxvst/ COMPONENT VST2) - install(TARGETS jucePlugin_VST3 LIBRARY DESTINATION /usr/local/lib/vst3/ COMPONENT VST3) endif() + install(TARGETS jucePlugin_VST3 LIBRARY DESTINATION /usr/local/lib/vst3/ COMPONENT VST3) endif() endif()