summaryrefslogtreecommitdiff
path: root/indra/cmake/LLPhysicsExtensions.cmake
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2025-10-17 17:06:39 -0400
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2025-10-17 17:06:39 -0400
commitbbc2ad8fc50b2efb19a40a2db57043690addc492 (patch)
treecd52ee85740d6cf788e918187c2b7c196407a7a6 /indra/cmake/LLPhysicsExtensions.cmake
parent01a799495b93cb9f7d5b9298bfb57afc99e47e1b (diff)
parentaec7bf19ebffd9d6b60c68e31de723eabd6aa98a (diff)
Merge remote-tracking branch 'origin/main' into geenz/main-to-develop
Diffstat (limited to 'indra/cmake/LLPhysicsExtensions.cmake')
-rw-r--r--indra/cmake/LLPhysicsExtensions.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/cmake/LLPhysicsExtensions.cmake b/indra/cmake/LLPhysicsExtensions.cmake
index bb6cb703d2..25563546eb 100644
--- a/indra/cmake/LLPhysicsExtensions.cmake
+++ b/indra/cmake/LLPhysicsExtensions.cmake
@@ -22,8 +22,15 @@ if (HAVOK)
include(Havok)
use_prebuilt_binary(llphysicsextensions_source)
set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/src)
- target_link_libraries( llphysicsextensions_impl INTERFACE llphysicsextensions)
target_compile_definitions( llphysicsextensions_impl INTERFACE LL_HAVOK=1 )
+ if(DARWIN)
+ set(LLPHYSICSEXTENSIONS_STUB_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/stub)
+ # can't set these library dependencies per-arch here, need to do it using XCODE_ATTRIBUTE_OTHER_LDFLAGS[arch=*] in newview/CMakeLists.txt
+ #target_link_libraries( llphysicsextensions_impl INTERFACE llphysicsextensions)
+ #target_link_libraries( llphysicsextensions_impl INTERFACE llphysicsextensionsstub)
+ else()
+ target_link_libraries( llphysicsextensions_impl INTERFACE llphysicsextensions)
+ endif()
elseif (HAVOK_TPV)
use_prebuilt_binary(llphysicsextensions_tpv)
if(WINDOWS)