From: Viktor Szakats Date: Thu, 6 Nov 2025 01:20:12 +0000 (+0100) Subject: cmake: disable `CURL_CA_PATH` auto-detection if `USE_APPLE_SECTRUST=ON` X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9825a3b708222be2e753d4c4a1ea0388cbfa334f;p=thirdparty%2Fcurl.git cmake: disable `CURL_CA_PATH` auto-detection if `USE_APPLE_SECTRUST=ON` Syncing behavior with `CURL_CA_BUNDLE` and autotools. `/etc/ssl/certs` is empty by default on macOS systems, thus no likely auto-detection finds something there. Follow-up to eefd03c572996e5de4dec4fe295ad6f103e0eefc #18703 Closes #19380 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b442ac704..068d97d49b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1551,7 +1551,7 @@ if(_curl_ca_bundle_supported) unset(CURL_CA_PATH CACHE) elseif(CURL_CA_PATH STREQUAL "auto") unset(CURL_CA_PATH CACHE) - if(NOT CMAKE_CROSSCOMPILING AND NOT WIN32) + if(NOT CMAKE_CROSSCOMPILING AND NOT WIN32 AND NOT USE_APPLE_SECTRUST) set(_curl_ca_path_autodetect TRUE) endif() else()