summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7f8febb90..647219052 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,18 @@ option(YUZU_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF)
63 63
64CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) 64CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF)
65 65
66set(DEFAULT_ENABLE_OPENSSL ON)
67if (ANDROID OR WIN32 OR APPLE)
68 # - Windows defaults to the Schannel backend.
69 # - macOS defaults to the SecureTransport backend.
70 # - Android currently has no SSL backend as the NDK doesn't include any SSL
71 # library; a proper 'native' backend would have to go through Java.
72 # But you can force builds for those platforms to use OpenSSL if you have
73 # your own copy of it.
74 set(DEFAULT_ENABLE_OPENSSL OFF)
75endif()
76option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
77
66# On Android, fetch and compile libcxx before doing anything else 78# On Android, fetch and compile libcxx before doing anything else
67if (ANDROID) 79if (ANDROID)
68 set(CMAKE_SKIP_INSTALL_RULES ON) 80 set(CMAKE_SKIP_INSTALL_RULES ON)
@@ -322,6 +334,10 @@ if (MINGW)
322 find_library(MSWSOCK_LIBRARY mswsock REQUIRED) 334 find_library(MSWSOCK_LIBRARY mswsock REQUIRED)
323endif() 335endif()
324 336
337if(ENABLE_OPENSSL)
338 find_package(OpenSSL 1.1.1 REQUIRED)
339endif()
340
325# Please consider this as a stub 341# Please consider this as a stub
326if(ENABLE_QT6 AND Qt6_LOCATION) 342if(ENABLE_QT6 AND Qt6_LOCATION)
327 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") 343 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}")