]> git.proxmox.com Git - libgit2.git/blobdiff - cmake/SelectHTTPSBackend.cmake
Merge https://salsa.debian.org/debian/libgit2 into proxmox/bullseye
[libgit2.git] / cmake / SelectHTTPSBackend.cmake
index 79319502eb3de5390106cb50c8a61e584d02801e..20221bf9f64fb9db10b48eacb58d862dbec36b23 100644 (file)
@@ -64,7 +64,7 @@ if(USE_HTTPS)
 
                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()