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

CMake: Propagate more definitions from shared-code to plugin wrappers

In order to avoid collisions in the JucePlugin_Build preprocessor
definitions, we were only propagating the JUCE_MODULE_AVAILABLE defs
from the shared code target to the plugin wrapper targets.

After this change, we propagate everything *but* the JucePlugin_Build
definitions.
This commit is contained in:
reuk 2020-11-12 15:32:58 +00:00
parent e0110e62bb
commit f29e2de715
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -703,7 +703,7 @@ function(_juce_get_module_definitions target filter out_var)
set(compile_defs $<TARGET_GENEX_EVAL:${target},$<TARGET_PROPERTY:${target},COMPILE_DEFINITIONS>>)
if(filter)
set(${out_var} $<FILTER:${compile_defs},INCLUDE,JUCE_MODULE_AVAILABLE_> PARENT_SCOPE)
set(${out_var} $<FILTER:${compile_defs},EXCLUDE,JucePlugin_Build_|JUCE_SHARED_CODE> PARENT_SCOPE)
else()
set(${out_var} ${compile_defs} PARENT_SCOPE)
endif()