mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Fix AudioUnit link error
Building AudioUnits with an older CMAKE_OSX_DEPLOYMENT_TARGET (e.g. 10.9) but a newer sdk (e.g. 10.15) would result in link failures. Linking against the AudioUnit framework supplies the missing symbols. AudioUnits built with the Projucer also link CoreAudioKit, so we do that in CMake too for consistency.
This commit is contained in:
parent
51b07dc038
commit
05d0560c5b
1 changed files with 4 additions and 0 deletions
|
|
@ -411,6 +411,10 @@ function(_juce_add_plugin_wrapper_target)
|
|||
find_library(AUv3_AudioUnit AudioUnit REQUIRED)
|
||||
target_link_libraries("${target_name}" INTERFACE ${AUv3_AudioUnit})
|
||||
endif()
|
||||
elseif(JUCE_ARG_FORMAT STREQUAL "AU")
|
||||
find_library(AU_AudioUnit AudioUnit REQUIRED)
|
||||
find_library(AU_CoreAudioKit CoreAudioKit REQUIRED)
|
||||
target_link_libraries("${target_name}" INTERFACE ${AU_AudioUnit} ${AU_CoreAudioKit})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue