diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2018-01-08 12:33:07 +0000 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2018-01-08 12:33:07 +0000 |
commit | b21c5408ff18eaf99029f59e738f6f614a53c90d (patch) | |
tree | 8e92807800773a890198c906842c1a2665a554ed | |
parent | b85548edb027474af3d107f9faa004cc09a1863a (diff) | |
download | libgit2-b21c5408ff18eaf99029f59e738f6f614a53c90d.tar.gz |
cmake: add openssl to the private deps list when it's the TLS implementation
We might want OpenSSL to be the implementation for SHA-1 and/or TLS. If we only
want it for TLS (e.g. we're building with the collision-detecting SHA-1
implementation) then we did not indicate this to the systems including us a
static library.
Add OpenSSL to the list also during the TLS decision to make sure we say we
should link to it if we use it for TLS.
-rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6bcb0a1c9..b03b96af9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -184,6 +184,7 @@ IF (USE_HTTPS) LIST(APPEND LIBGIT2_INCLUDES ${OPENSSL_INCLUDE_DIR}) LIST(APPEND LIBGIT2_LIBS ${OPENSSL_LIBRARIES}) LIST(APPEND LIBGIT2_PC_LIBS ${OPENSSL_LDFLAGS}) + LIST(APPEND LIBGIT2_PC_REQUIRES "openssl") ELSEIF (HTTPS_BACKEND STREQUAL "WinHTTP") # WinHTTP setup was handled in the WinHTTP-specific block above ELSE() |