From: Viktor Szakats Date: Wed, 5 Feb 2025 17:22:48 +0000 (+0100) Subject: cmake: respect `GNUTLS_LIBRARY_DIRS` in `libcurl.pc` and `curl-config` X-Git-Tag: curl-8_12_1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f6f446136af756e03cfff47c6e1d5121304e3c3;p=thirdparty%2Fcurl.git cmake: respect `GNUTLS_LIBRARY_DIRS` in `libcurl.pc` and `curl-config` Authored-by: Kai Pastor Ref: https://github.com/microsoft/vcpkg/commit/0ed3bfe969b2f95ad45f431c5ea482a69f132a67 Closes #16190 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd8d6a635..244384fb9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -851,7 +851,7 @@ if(CURL_USE_GNUTLS) set(_ssl_enabled ON) set(USE_GNUTLS ON) list(APPEND CURL_LIBS ${GNUTLS_LIBRARIES} ${NETTLE_LIBRARIES}) - list(APPEND CURL_LIBDIRS ${NETTLE_LIBRARY_DIRS}) + list(APPEND CURL_LIBDIRS ${GNUTLS_LIBRARY_DIRS} ${NETTLE_LIBRARY_DIRS}) list(APPEND LIBCURL_PC_REQUIRES_PRIVATE "gnutls" ${NETTLE_PC_REQUIRES}) include_directories(SYSTEM ${GNUTLS_INCLUDE_DIRS} ${NETTLE_INCLUDE_DIRS}) link_directories(${NETTLE_LIBRARY_DIRS})