Browse Source

fix: link CoreAudio frameworks when using PCAUDIO on macOS (#2134)

master
Alexander Epaneshnikov 4 months ago
parent
commit
5641b8b066
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/libespeak-ng/CMakeLists.txt

+ 3
- 0
src/libespeak-ng/CMakeLists.txt View File

@@ -104,6 +104,9 @@ endif()
if (HAVE_LIBPCAUDIO AND USE_LIBPCAUDIO)
target_link_libraries(espeak-ng PRIVATE ${PCAUDIO_LIB})
target_include_directories(espeak-ng PRIVATE ${PCAUDIO_INC})
if (APPLE)
target_link_libraries(espeak-ng PRIVATE "-framework CoreAudio" "-framework AudioToolbox" "-framework AudioUnit")
endif()
endif()

target_link_libraries(espeak-ng PRIVATE espeak-ng-config ucd)

Loading…
Cancel
Save