From aeb77559a72baba60a6c7c42806c339ff10e89e0 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 14 Jul 2025 16:49:17 +0200 Subject: [PATCH] build: Properly link against OpenSSL and LibCrypto --- plugins/remote/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/remote/CMakeLists.txt b/plugins/remote/CMakeLists.txt index b7df90a97..239322b09 100644 --- a/plugins/remote/CMakeLists.txt +++ b/plugins/remote/CMakeLists.txt @@ -18,11 +18,13 @@ add_imhex_plugin( INCLUDES include ${LIBSSH2_INCLUDE_DIR} - ${OPENSSL_INCLUDE_DIR} LIBRARIES ui fonts ${LIBSSH2_LIBRARY} - ${OPENSSL_LIBRARY} ) + +if (NOT WIN32) + target_link_libraries(remote PRIVATE OpenSSL::SSL OpenSSL::Crypto) +endif()