diff --git a/CMakeLists.txt b/CMakeLists.txt index ad7308db..f876be63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,7 +178,7 @@ if(WIN32) elseif(BUNDLED_OPENSSL) list(APPEND CURL_CMAKE_ARGS -DOPENSSL_ROOT_DIR=${OPENSSL_PREFIX} -DCMAKE_USE_OPENSSL=ON) else() - list(APPEND CURL_CMAKE_ARGS -DCMAKE_USE_OPENSSL=ON) + list(APPEND CURL_CMAKE_ARGS -DCMAKE_USE_OPENSSL=OFF -DCMAKE_USE_SCHANNEL=ON) endif() else() list(APPEND CURL_CMAKE_ARGS -DCMAKE_USE_OPENSSL=OFF) @@ -506,7 +506,11 @@ elseif(UNIX) elseif(BUNDLED_OPENSSL) list(APPEND CURL_CONFIGURE --with-ssl=${LIBS_BINARY_DIR}/openssl) else() - list(APPEND CURL_CONFIGURE --with-ssl) + if(APPLE) + list(APPEND CURL_CONFIGURE --without-ssl --with-secure-transport) + else() + list(APPEND CURL_CONFIGURE --with-ssl) + endif() endif() else() list(APPEND CURL_CONFIGURE --without-ssl)