mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:11:40 +03:00
cmake: respect GNUTLS_CFLAGS when detected via pkg-config
Closes #16242
This commit is contained in:
parent
c2aa504ab9
commit
a5f120df06
1 changed files with 4 additions and 0 deletions
|
|
@ -838,6 +838,10 @@ if(CURL_USE_GNUTLS)
|
|||
pkg_check_modules(GNUTLS "gnutls")
|
||||
if(GNUTLS_FOUND)
|
||||
set(GNUTLS_LIBRARIES ${GNUTLS_LINK_LIBRARIES})
|
||||
string(REPLACE ";" " " GNUTLS_CFLAGS "${GNUTLS_CFLAGS}")
|
||||
if(GNUTLS_CFLAGS)
|
||||
string(APPEND CMAKE_C_FLAGS " ${GNUTLS_CFLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(NOT GNUTLS_FOUND)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue