I’m running into a frustrating issue I could use help with.
On my development systems, we want the plugins to be installed in place, for debugging/developing purposes (e.g., on MacOS, in ~/Libray/Audio/Plug-Ins/Components, etc.)
On the BUILDSERVER, we do not want to do any plugin copying, since the buildserver is only signing/notarizing/packaging the final product.
To accomplish this, I have in my CMakeLists.txt file, the following statements:
juce_add_plugin("${PROJECT_NAME}"
COPY_PLUGIN_AFTER_BUILD TRUE
)
Followed shortly after with:
# Do not copy the plugin into standard directories if it is a Release build type
if (${CMAKE_BUILD_TYPE} MATCHES "Release")
message(STATUS "Release build detected: will not copy plugins")
set_target_properties("${PROJECT_NAME}" PROPERTIES JUCE_COPY_PLUGIN_AFTER_BUILD OFF)
else ()
message(STATUS "Debug build detected: will copy plugins for testing")
set_target_properties("${PROJECT_NAME}" PROPERTIES JUCE_COPY_PLUGIN_AFTER_BUILD ON)
endif()
But, this does not seem to be working. No matter what, the build server (which is for sure setting the CMAKE_BUILD_TYPE to “Release”) still attempts the copy.
How do I set this up properly? I think I’ve got some confusion about the applicability of the juce_add_plugin() statements, compared with the if … else … endif() statement which follows shortly after the plugin declaration.
EDIT: is the problem something like the difference between COPY_PLUGIN_AFTER_BUILD and JUCE_COPY_PLUGIN_AFTER_BUILD? Also, is it unwise to assume that TRUE=ON/FALSE=OFF?
