From e422fea4293c23068ee16dc1db3ec3c4a1ec8d43 Mon Sep 17 00:00:00 2001 From: theirix Date: Mon, 18 Jan 2021 16:51:40 +0300 Subject: [PATCH] Do not link OpenSSL, just provide include dirs --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4872ea3..908029b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,7 +129,7 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC if(AMQP-CPP_LINUX_TCP) target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS}) - # Find and link OpenSSL + # Find OpenSSL and provide include dirs find_package(OpenSSL REQUIRED) - target_link_libraries(${PROJECT_NAME} OpenSSL::SSL) + target_include_directories(${PROJECT_NAME} PRIVATE ${OPENSSL_INCLUDE_DIR}) endif()