From 602cdc06a01b7c5c0eb444111382b09040f677ee Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 12 Aug 2015 15:35:22 -0400 Subject: [PATCH] cmCurl: Tolerate lack of CURLOPT_CAPATH support Since curl 7.39 the CURLOPT_CAPATH setting may be rejected with a CURLE_NOT_BUILT_IN error. Simply tolerate this with silent failure since we just will not use the CAPATH setting in this case. --- Source/cmCurl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmCurl.cxx b/Source/cmCurl.cxx index 96d3547e3..ad0c7d3e2 100644 --- a/Source/cmCurl.cxx +++ b/Source/cmCurl.cxx @@ -13,7 +13,7 @@ #include "cmSystemTools.h" #define check_curl_result(result, errstr) \ - if (result != CURLE_OK) \ + if (result != CURLE_OK && result != CURLE_NOT_BUILT_IN) \ { \ e += e.empty()? "" : "\n"; \ e += errstr; \