mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 07:18:21 +08:00
35 lines
1.7 KiB
Diff
35 lines
1.7 KiB
Diff
From 8fe2958d3202b409f7d54f53b41fca7b225c3f0e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org>
|
|
Date: Thu, 27 Jul 2023 15:06:24 +0200
|
|
Subject: [PATCH] Don't use apsolute path when linking to macOS frameworks
|
|
|
|
---
|
|
CMakeLists.txt | 18 +++++++-----------
|
|
1 file changed, 7 insertions(+), 11 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 87d0bb832..75aa89e7b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -261,13 +261,13 @@ ELSE()
|
|
SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${PA_COREAUDIO_INCLUDES})
|
|
SET(PA_SOURCES ${PA_SOURCES} ${PA_COREAUDIO_SOURCES})
|
|
|
|
- FIND_LIBRARY(COREAUDIO_LIBRARY CoreAudio REQUIRED)
|
|
- FIND_LIBRARY(AUDIOTOOLBOX_LIBRARY AudioToolbox REQUIRED)
|
|
- FIND_LIBRARY(AUDIOUNIT_LIBRARY AudioUnit REQUIRED)
|
|
- FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
|
|
- FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices REQUIRED)
|
|
- MARK_AS_ADVANCED(COREAUDIO_LIBRARY AUDIOTOOLBOX_LIBRARY AUDIOUNIT_LIBRARY COREFOUNDATION_LIBRARY CORESERVICES_LIBRARY)
|
|
- SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${COREAUDIO_LIBRARY} ${AUDIOTOOLBOX_LIBRARY} ${AUDIOUNIT_LIBRARY} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY})
|
|
+ SET(PA_LIBRARY_DEPENDENCIES
|
|
+ ${PA_LIBRARY_DEPENDENCIES}
|
|
+ -Wl,-framework,CoreAudio
|
|
+ -Wl,-framework,AudioToolbox
|
|
+ -Wl,-framework,AudioUnit
|
|
+ -Wl,-framework,CoreFoundation
|
|
+ -Wl,-framework,CoreServices)
|
|
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_USE_COREAUDIO)
|
|
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreFoundation -framework CoreServices")
|
|
ENDIF()
|