vendor/libgit2/cmake/SelectHTTPSBackend.cmake in rugged-1.4.5 vs vendor/libgit2/cmake/SelectHTTPSBackend.cmake in rugged-1.5.0
- old
+ new
@@ -62,10 +62,10 @@
message(FATAL_ERROR "Asked for mbedTLS backend, but it wasn't found")
endif()
if(NOT CERT_LOCATION)
message(STATUS "Auto-detecting default certificates location")
- if(CMAKE_SYSTEM_NAME MATCHES Darwin)
+ if(EXISTS "/usr/local/opt/openssl/bin/openssl")
# Check for an Homebrew installation
set(OPENSSL_CMD "/usr/local/opt/openssl/bin/openssl")
else()
set(OPENSSL_CMD "openssl")
endif()