summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenXR.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/OpenXR.cmake')
-rw-r--r--indra/cmake/OpenXR.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/cmake/OpenXR.cmake b/indra/cmake/OpenXR.cmake
index 2cc862b927..e315a99025 100644
--- a/indra/cmake/OpenXR.cmake
+++ b/indra/cmake/OpenXR.cmake
@@ -8,6 +8,8 @@ add_library( ll::openxr INTERFACE IMPORTED )
if(USE_CONAN )
target_link_libraries( ll::openxr INTERFACE CONAN_PKG::openxr )
return()
+elseif (CMAKE_SYSTEM_PROCESSOR MATCHES aarch64)
+ return()
endif()
use_prebuilt_binary(openxr)
@@ -20,3 +22,12 @@ endif (WINDOWS)
if( NOT LINUX )
target_include_directories( ll::openxr SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)
endif()
+
+if (DARWIN)
+ execute_process(
+ COMMAND lipo libopenxr_loader.a
+ -thin ${CMAKE_OSX_ARCHITECTURES}
+ -output libopenxr_loader.a
+ WORKING_DIRECTORY ${ARCH_PREBUILT_DIRS_RELEASE}
+ )
+endif ()