1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

cmake: add openssl libs to Libs.private in libssh2.pc

Also to sync up with autotools-generated `libssh2.pc`, that
already added them.

Closes #1127
This commit is contained in:
Viktor Szakats
2023-07-20 12:57:36 +00:00
parent 75ed30917d
commit 5cfa59d391

View File

@@ -303,6 +303,7 @@ if(CRYPTO_BACKEND STREQUAL "OpenSSL" OR NOT CRYPTO_BACKEND)
set(CRYPTO_BACKEND_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR}) set(CRYPTO_BACKEND_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR})
list(APPEND LIBRARIES ${OPENSSL_LIBRARIES}) list(APPEND LIBRARIES ${OPENSSL_LIBRARIES})
list(APPEND LIBSSH2_PC_REQUIRES_PRIVATE libssl libcrypto) list(APPEND LIBSSH2_PC_REQUIRES_PRIVATE libssl libcrypto)
list(APPEND LIBSSH2_PC_LIBS_PRIVATE -lssl -lcrypto)
if(WIN32) if(WIN32)
# Statically linking to OpenSSL requires crypt32 for some Windows APIs. # Statically linking to OpenSSL requires crypt32 for some Windows APIs.