From 5cfa59d3910da7ae1ab6d30f022f27d29d2bcda6 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 20 Jul 2023 12:57:36 +0000 Subject: [PATCH] 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 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1fb3282..9cf27a48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -303,6 +303,7 @@ if(CRYPTO_BACKEND STREQUAL "OpenSSL" OR NOT CRYPTO_BACKEND) set(CRYPTO_BACKEND_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR}) list(APPEND LIBRARIES ${OPENSSL_LIBRARIES}) list(APPEND LIBSSH2_PC_REQUIRES_PRIVATE libssl libcrypto) + list(APPEND LIBSSH2_PC_LIBS_PRIVATE -lssl -lcrypto) if(WIN32) # Statically linking to OpenSSL requires crypt32 for some Windows APIs.