diff options
author | Viktor Szakats <commit@vsz.me> | 2023-03-05 19:51:52 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2023-03-05 19:51:52 +0000 |
commit | 016c62c4d52997f31d7e45b50cc7e8165a1488dc (patch) | |
tree | 259c8662c4dd457a67c3fdaccf26e93a2c2620b3 /CMakeLists.txt | |
parent | e135bc9d31ad2f13909a2a62fa808e6d299586e6 (diff) | |
download | curl-016c62c4d52997f31d7e45b50cc7e8165a1488dc.tar.gz |
cmake: skip CA-path/bundle auto-detection in cross-builds
Also remove issue from KNOWN_BUGS.
Reported-by: Cristian Morales Vega
Reviewed-by: Marcel Raad
Fixes #6178
Closes #10676
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b97704bfe..be0e5f8d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -870,7 +870,9 @@ elseif("${CURL_CA_BUNDLE}" STREQUAL "none") unset(CURL_CA_BUNDLE CACHE) elseif("${CURL_CA_BUNDLE}" STREQUAL "auto") unset(CURL_CA_BUNDLE CACHE) - set(CURL_CA_BUNDLE_AUTODETECT TRUE) + if(NOT CMAKE_CROSSCOMPILING) + set(CURL_CA_BUNDLE_AUTODETECT TRUE) + endif() else() set(CURL_CA_BUNDLE_SET TRUE) endif() @@ -881,7 +883,7 @@ elseif("${CURL_CA_PATH}" STREQUAL "none") unset(CURL_CA_PATH CACHE) elseif("${CURL_CA_PATH}" STREQUAL "auto") unset(CURL_CA_PATH CACHE) - if(NOT USE_NSS) + if(NOT CMAKE_CROSSCOMPILING AND NOT USE_NSS) set(CURL_CA_PATH_AUTODETECT TRUE) endif() else() |