cmake: respect GNUTLS_CFLAGS when detected via pkg-config
Closes #16242
This commit is contained in:
parent
c2aa504ab9
commit
a5f120df06
@ -838,6 +838,10 @@ if(CURL_USE_GNUTLS)
|
|||||||
pkg_check_modules(GNUTLS "gnutls")
|
pkg_check_modules(GNUTLS "gnutls")
|
||||||
if(GNUTLS_FOUND)
|
if(GNUTLS_FOUND)
|
||||||
set(GNUTLS_LIBRARIES ${GNUTLS_LINK_LIBRARIES})
|
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()
|
||||||
endif()
|
endif()
|
||||||
if(NOT GNUTLS_FOUND)
|
if(NOT GNUTLS_FOUND)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user