diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-04-04 13:28:40 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-04-04 13:29:19 -0400 |
commit | 3bd9bb8d77521f3fb0181366463e1c93d48aaa2e (patch) | |
tree | 6a4fac72593e11d1ac35bee98b4fd3e321380d6c /cmake | |
parent | db4461d556ddb7915349d094ba74ef01d7a2d701 (diff) | |
download | libgit2-3bd9bb8d77521f3fb0181366463e1c93d48aaa2e.tar.gz |
sha256: support dynamically loaded openssl
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/SelectHashes.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/SelectHashes.cmake b/cmake/SelectHashes.cmake index 29a50b672..faf9e2ea3 100644 --- a/cmake/SelectHashes.cmake +++ b/cmake/SelectHashes.cmake @@ -26,6 +26,10 @@ if(USE_SHA1 STREQUAL "CollisionDetection") set(GIT_SHA1_COLLISIONDETECT 1) elseif(USE_SHA1 STREQUAL "OpenSSL") set(GIT_SHA1_OPENSSL 1) +elseif(USE_SHA1 STREQUAL "OpenSSL-Dynamic") + set(GIT_SHA1_OPENSSL 1) + set(GIT_SHA1_OPENSSL_DYNAMIC 1) + list(APPEND LIBGIT2_SYSTEM_LIBS dl) elseif(USE_SHA1 STREQUAL "CommonCrypto") set(GIT_SHA1_COMMON_CRYPTO 1) elseif(USE_SHA1 STREQUAL "mbedTLS") @@ -58,6 +62,10 @@ if(USE_SHA256 STREQUAL "Builtin") set(GIT_SHA256_BUILTIN 1) elseif(USE_SHA256 STREQUAL "OpenSSL") set(GIT_SHA256_OPENSSL 1) +elseif(USE_SHA256 STREQUAL "OpenSSL-Dynamic") + set(GIT_SHA256_OPENSSL 1) + set(GIT_SHA256_OPENSSL_DYNAMIC 1) + list(APPEND LIBGIT2_SYSTEM_LIBS dl) elseif(USE_SHA256 STREQUAL "CommonCrypto") set(GIT_SHA256_COMMON_CRYPTO 1) elseif(USE_SHA256 STREQUAL "mbedTLS") |