summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-08-02 13:49:36 +0200
committerPatrick Steinhardt <ps@pks.im>2019-09-13 10:03:38 +0200
commite77fdf87166e382e8adb7c6f69e9c5e283ed533f (patch)
tree4185c32a706d54f9657eb5156a910814d2420184 /cmake
parent48d23a8ca639b6878fff9b72fe9115cd2c68a3cc (diff)
downloadlibgit2-e77fdf87166e382e8adb7c6f69e9c5e283ed533f.tar.gz
cmake: properly abort if no mbedTLS cert location is found
When using mbedTLS as backend, then the user may specify the location of where system certificates are installed. If no such location is provided by the user, CMake will try to autodetect the location by using the openssl executable, if installed. If no location could be detected, then the mbedTLS is essentially worthless as it is completely unable to verify any certificates. To avoid use of such misconfigured mbedTLS configurations, let's error out if we were unable to find out the location.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/SelectHTTPSBackend.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/SelectHTTPSBackend.cmake b/cmake/Modules/SelectHTTPSBackend.cmake
index 14147e34e..58343ee69 100644
--- a/cmake/Modules/SelectHTTPSBackend.cmake
+++ b/cmake/Modules/SelectHTTPSBackend.cmake
@@ -91,7 +91,7 @@ IF(HTTPS_BACKEND)
ENDIF()
ENDFOREACH()
ELSE()
- MESSAGE("Unable to find OpenSSL executable. Please provide default certificate location via CERT_LOCATION")
+ MESSAGE(FATAL_ERROR "Unable to find OpenSSL executable. Please provide default certificate location via CERT_LOCATION")
ENDIF()
ENDIF()