From a124103cf975571a3c664a3d329e6affda9ff2fb Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sat, 11 Oct 2025 13:55:36 +0800 Subject: 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. --- indra/cmake/LLPhysicsExtensions.cmake | 3 +++ indra/cmake/WebRTC.cmake | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/indra/cmake/LLPhysicsExtensions.cmake b/indra/cmake/LLPhysicsExtensions.cmake index 6112621b5a..f9870e4a28 100644 --- a/indra/cmake/LLPhysicsExtensions.cmake +++ b/indra/cmake/LLPhysicsExtensions.cmake @@ -32,6 +32,9 @@ if (HAVOK) endif() elseif (HAVOK_TPV) use_prebuilt_binary(llphysicsextensions_tpv) + if (CMAKE_OSX_ARCHITECTURES MATCHES x86_64) + target_link_directories( llphysicsextensions_impl INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE} ) + endif () target_link_libraries( llphysicsextensions_impl INTERFACE llphysicsextensions_tpv) else (HAVOK) use_prebuilt_binary(llphysicsextensions_stub) 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 -- cgit v1.2.3