summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenSSL.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-06-12 00:32:22 +0800
committerErik Kundiman <erik@megapahit.org>2025-06-12 00:32:22 +0800
commit3908abc96cb742623b2945eb382ad72628b234a0 (patch)
treec2e1493dcac813fb34064d8b04d5fbb7f38ab618 /indra/cmake/OpenSSL.cmake
parent0c6dad371514dd004d936ad0f73f7c2a38f10fb5 (diff)
Use system (vcpkg) OpenSSL & cURL on Windows arm64
cURL is installed on arm64 cause there doesn't seem to be any easy way to build OpenSSL 1.1 for Windows arm64 (which LL's cURL fork depends on).
Diffstat (limited to 'indra/cmake/OpenSSL.cmake')
-rw-r--r--indra/cmake/OpenSSL.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/cmake/OpenSSL.cmake b/indra/cmake/OpenSSL.cmake
index ef90068993..afa2ba377d 100644
--- a/indra/cmake/OpenSSL.cmake
+++ b/indra/cmake/OpenSSL.cmake
@@ -5,8 +5,9 @@ include(Linking)
include_guard()
add_library( ll::openssl INTERFACE IMPORTED )
-#use_system_binary(openssl)
-if (LINUX AND CMAKE_SYSTEM_PROCESSOR MATCHES x86_64 OR DARWIN OR WINDOWS)
+if ($ENV{MSYSTEM_CARCH} MATCHES aarch64)
+use_system_binary(openssl)
+elseif (LINUX AND CMAKE_SYSTEM_PROCESSOR MATCHES x86_64 OR DARWIN OR WINDOWS)
use_prebuilt_binary(openssl)
if (DARWIN)
execute_process(