gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 2441a73f475b47e741926e616115fb5f5b182989
parent 3c59ba60c8349c9d39ad64a8bf65e2c74c9383ac
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed, 24 Apr 2024 00:21:21 +0200

do not use absolute paths in install() commands, use relative paths and set target path via CPACK_PACKAGING_INSTALL_PREFIX

Diffstat:
MCMakeLists.txt | 1+
Msource/juce.cmake | 8++++----
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -66,5 +66,6 @@ set(CPACK_COMPONENTS_GROUPING IGNORE) set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) set(CPACK_DEB_COMPONENT_INSTALL ON) set(CPACK_RPM_COMPONENT_INSTALL ON) +set(CPACK_PACKAGING_INSTALL_PREFIX /usr/local) include(CPack) diff --git a/source/juce.cmake b/source/juce.cmake @@ -105,7 +105,7 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec else() get_target_property(vst3OutputFolder ${targetName}_VST3 ARCHIVE_OUTPUT_DIRECTORY) if(UNIX) - set(dest /usr/local/lib/vst3) + set(dest lib/vst3) set(pattern "*.so") else() set(dest .) @@ -129,13 +129,13 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec endif() elseif(UNIX) if(JUCE_GLOBAL_VST2_SDK_PATH) - install(TARGETS ${targetName}_VST LIBRARY DESTINATION /usr/local/lib/vst/ COMPONENT ${productName}-VST2) + install(TARGETS ${targetName}_VST LIBRARY DESTINATION lib/vst/ COMPONENT ${productName}-VST2) endif() if(USE_CLAP) - install(TARGETS ${targetName}_CLAP LIBRARY DESTINATION /usr/local/lib/clap/ COMPONENT ${productName}-CLAP) + install(TARGETS ${targetName}_CLAP LIBRARY DESTINATION lib/clap/ COMPONENT ${productName}-CLAP) endif() if(USE_LV2) - install(TARGETS ${targetName}_LV2 LIBRARY DESTINATION /usr/local/lib/lv2/ COMPONENT ${productName}-LV2) + install(TARGETS ${targetName}_LV2 LIBRARY DESTINATION lib/lv2/ COMPONENT ${productName}-LV2) endif() endif()