summaryrefslogtreecommitdiff
path: root/indra/llcommon/CMakeLists.txt
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-09 21:54:43 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-09 21:54:43 +0800
commitebc9ace4259c71350582bafa8cc502a78866d8f4 (patch)
tree0c772e888a71954d96e5404706fd103015575cfd /indra/llcommon/CMakeLists.txt
parent5e35f9be4861b39b40644ce351b5d49b8b8b797b (diff)
Download sse2neon.h automatically
Diffstat (limited to 'indra/llcommon/CMakeLists.txt')
-rw-r--r--indra/llcommon/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index 38fd05fae6..9811e705a0 100644
--- a/indra/llcommon/CMakeLists.txt
+++ b/indra/llcommon/CMakeLists.txt
@@ -294,6 +294,16 @@ target_link_libraries(
target_include_directories(llcommon INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(llcommon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
+if (CMAKE_OSX_ARCHITECTURES MATCHES "(x86_64;)*arm64(;x86_64)*")
+ execute_process(COMMAND mkdir -p ${AUTOBUILD_INSTALL_DIR}/include/sse2neon)
+ execute_process(COMMAND curl
+ -OL
+ https://raw.githubusercontent.com/DLTcollab/sse2neon/master/sse2neon.h
+ WORKING_DIRECTORY ${AUTOBUILD_INSTALL_DIR}/include/sse2neon
+ )
+ target_include_directories(llcommon PUBLIC ${AUTOBUILD_INSTALL_DIR}/include/sse2neon)
+endif ()
+
if (USE_AUTOBUILD_3P OR USE_CONAN)
add_dependencies(llcommon stage_third_party_libs)
else ()