summaryrefslogtreecommitdiff
path: root/indra/cmake/WebRTC.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-10-11 13:55:36 +0800
committerErik Kundiman <erik@megapahit.org>2025-10-11 13:55:36 +0800
commita124103cf975571a3c664a3d329e6affda9ff2fb (patch)
tree70ca564b882eb1b11176ad4a23cbeda61e5024ab /indra/cmake/WebRTC.cmake
parentfc7795696bbbd25c08c9c659a12d444a9ae27d81 (diff)
Fix WebRTC & Havok linking on macOS x86-64
It wouldn't automatically detect the prebuilt libraries directory, might be because of the older build environment I have for building the macOS x86-64 binary.
Diffstat (limited to 'indra/cmake/WebRTC.cmake')
-rw-r--r--indra/cmake/WebRTC.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/cmake/WebRTC.cmake b/indra/cmake/WebRTC.cmake
index e66c9a6295..5fda2f71b9 100644
--- a/indra/cmake/WebRTC.cmake
+++ b/indra/cmake/WebRTC.cmake
@@ -87,6 +87,10 @@ find_library(WEBRTC_LIBRARY
target_link_libraries( ll::webrtc INTERFACE ${WEBRTC_LIBRARY} )
if (DARWIN)
+ if (CMAKE_OSX_ARCHITECTURES MATCHES x86_64)
+ target_link_directories( ll::webrtc INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE} )
+ target_link_libraries( ll::webrtc INTERFACE webrtc )
+ endif ()
target_link_libraries( ll::webrtc INTERFACE ll::oslibraries )
execute_process(
COMMAND lipo libwebrtc.a