diff options
author | comex <comexk@gmail.com> | 2023-06-26 02:36:51 +0200 |
---|---|---|
committer | comex <comexk@gmail.com> | 2023-06-26 02:36:51 +0200 |
commit | 8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd (patch) | |
tree | 207d5727d1363e25c064066205c0a51282006244 | |
parent | re-format (diff) | |
download | yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.gz yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.bz2 yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.lz yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.xz yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.zst yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.zip |
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bd3808515..51b35d31a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,16 @@ option(YUZU_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF) CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) -CMAKE_DEPENDENT_OPTION(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ON "NOT WIN32" OFF) +set(DEFAULT_ENABLE_OPENSSL ON) +if (ANDROID OR WIN32) + # - Windows defaults to the Schannel backend. + # - Android currently has no SSL backend as the NDK doesn't include any SSL + # library; a proper 'native' backend would have to go through Java. + # But you can force builds for those platforms to use OpenSSL if you have + # your own copy of it. + set(DEFAULT_ENABLE_OPENSSL OFF) +endif() +option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL}) # On Android, fetch and compile libcxx before doing anything else if (ANDROID) |