1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Fix issue where overwriting inherited properties was broken

This commit is contained in:
reuk 2020-04-14 19:22:36 +01:00
parent c9872ce3a6
commit 28ef311668

View file

@ -1735,6 +1735,25 @@ function(_juce_initialise_target target)
_juce_make_absolute_and_check(JUCE_ARG_ICON_SMALL)
endif()
set(inherited_properties
COMPANY_NAME
COMPANY_WEBSITE
COMPANY_EMAIL
COMPANY_COPYRIGHT
VST_COPY_DIR
VST3_COPY_DIR
AU_COPY_DIR
AAX_COPY_DIR
UNITY_COPY_DIR
COPY_PLUGIN_AFTER_BUILD)
# Overwrite any properties that might be inherited
foreach(prop_string IN ITEMS ${inherited_properties})
if(${JUCE_ARG_${prop_string}} MATCHES ".+")
set_target_properties(${target} PROPERTIES JUCE_${prop_string} "${JUCE_ARG_${prop_string}}")
endif()
endforeach()
# Add each of the function arguments as target properties, so that it's easier to
# extract them in other functions
foreach(arg_string IN ITEMS ${one_value_args} ${multi_value_args})