summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5ef0ef50..7e74733d6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,17 @@ 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)
68 # - Windows defaults to the Schannel backend.
69 # - Android currently has no SSL backend as the NDK doesn't include any SSL
70 # library; a proper 'native' backend would have to go through Java.
71 # But you can force builds for those platforms to use OpenSSL if you have
72 # your own copy of it.
73 set(DEFAULT_ENABLE_OPENSSL OFF)
74endif()
75option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
76
66# On Android, fetch and compile libcxx before doing anything else 77# On Android, fetch and compile libcxx before doing anything else
67if (ANDROID) 78if (ANDROID)
68 set(CMAKE_SKIP_INSTALL_RULES ON) 79 set(CMAKE_SKIP_INSTALL_RULES ON)
@@ -322,6 +333,10 @@ if (MINGW)
322 find_library(MSWSOCK_LIBRARY mswsock REQUIRED) 333 find_library(MSWSOCK_LIBRARY mswsock REQUIRED)
323endif() 334endif()
324 335
336if(ENABLE_OPENSSL)
337 find_package(OpenSSL 1.1.1 REQUIRED)
338endif()
339
325# Please consider this as a stub 340# Please consider this as a stub
326if(ENABLE_QT6 AND Qt6_LOCATION) 341if(ENABLE_QT6 AND Qt6_LOCATION)
327 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") 342 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}")