From 4b12f80cf453d3ff2df27f5a282d0dd57c99feaa Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 1 Sep 2022 10:45:54 +0200 Subject: [PATCH] Fix incorrect nettle library references --- common/rdr/CMakeLists.txt | 3 ++- common/rfb/CMakeLists.txt | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt index 96ffe163..7f642b48 100644 --- a/common/rdr/CMakeLists.txt +++ b/common/rdr/CMakeLists.txt @@ -27,7 +27,8 @@ if(GNUTLS_FOUND) endif() if (NETTLE_FOUND) include_directories(${NETTLE_INCLUDE_DIRS}) - target_link_libraries(rdr ${NETTLE_LINK_LIBRARIES}) + target_link_libraries(rdr ${NETTLE_LIBRARIES}) + target_link_directories(rdr PUBLIC ${NETTLE_LIBRARY_DIRS}) endif() if(WIN32) target_link_libraries(rdr ws2_32) diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt index 914dd894..ea1954ec 100644 --- a/common/rfb/CMakeLists.txt +++ b/common/rfb/CMakeLists.txt @@ -105,7 +105,10 @@ endif() if (NETTLE_FOUND) target_sources(rfb PRIVATE CSecurityRSAAES.cxx SSecurityRSAAES.cxx) include_directories(${NETTLE_INCLUDE_DIRS} ${GMP_INCLUDE_DIRS}) - target_link_libraries(rfb ${HOGWEED_LINK_LIBRARIES} ${NETTLE_LINK_LIBRARIES} ${GMP_LINK_LIBRARIES}) + target_link_libraries(rfb ${HOGWEED_LIBRARIES} + ${NETTLE_LIBRARIES} ${GMP_LIBRARIES}) + target_link_directories(rfb PUBLIC ${HOGWEED_LIBRARY_DIRS} + ${NETTLE_LIBRARY_DIRS} ${GMP_LIBRARY_DIRS}) endif() if(UNIX) -- 2.39.5