summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-12 15:37:45 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-12 15:37:45 +0800
commitbef1c20c4c8e3c081066478381056932a188faa6 (patch)
treef7f5e10ed525acd2a7b468e363da224c234186c6 /indra/cmake
parenta350a4a26070a621fcfab58548f7993d158c1cd6 (diff)
Automatically lipo -thin libfmod.dylib
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/FMODSTUDIO.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/cmake/FMODSTUDIO.cmake b/indra/cmake/FMODSTUDIO.cmake
index 5b99a01413..92bef238d7 100644
--- a/indra/cmake/FMODSTUDIO.cmake
+++ b/indra/cmake/FMODSTUDIO.cmake
@@ -50,8 +50,10 @@ if (USE_FMODSTUDIO)
inc/fmod_errors.h
inc/fmod_output.h
${AUTOBUILD_INSTALL_DIR}/include/fmodstudio/
- COMMAND cp
- ${AUTOBUILD_INSTALL_DIR}/lib/release/
+ COMMAND lipo
+ lib/libfmod.dylib
+ -thin ${CMAKE_OSX_ARCHITECTURES}
+ -output ${AUTOBUILD_INSTALL_DIR}/lib/release/libfmod.dylib
WORKING_DIRECTORY /Volumes/FMOD\ Programmers\ API\ Mac/FMOD\ Programmers\ API/api/core
)
execute_process(