cmake: respect GNUTLS_LIBRARY_DIRS in libcurl.pc and curl-config

Authored-by: Kai Pastor
Ref: 0ed3bfe969
Closes #16190
This commit is contained in:
Viktor Szakats 2025-02-05 18:22:48 +01:00
parent 449d9f7897
commit 5f6f446136
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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})