diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-03-06 06:05:34 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-03-07 06:21:41 +1000 |
commit | a00f4112ff71a16db74bab0e4d435c6481a54813 (patch) | |
tree | 43a99d7ac95c7e86e9ab259d6abe69b7139982c0 /cmake/modules/FindGnuTLS.cmake | |
parent | d66d9ddac3922e7b85b962c889e4b818aeeb8eb0 (diff) |
[cmake] FindGnuTLS silence pkgconfig mismatch warning
Diffstat (limited to 'cmake/modules/FindGnuTLS.cmake')
-rw-r--r-- | cmake/modules/FindGnuTLS.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/modules/FindGnuTLS.cmake b/cmake/modules/FindGnuTLS.cmake index 62e3ea7a88..53ee411f0c 100644 --- a/cmake/modules/FindGnuTLS.cmake +++ b/cmake/modules/FindGnuTLS.cmake @@ -5,11 +5,14 @@ # GNUTLS_INCLUDE_DIRS - the gnutls include directory # GNUTLS_LIBRARIES - The gnutls libraries +# Suppress PkgConfig Mismatch warning, see https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html +set(FPHSA_NAME_MISMATCHED 1) include(FindPkgConfig) -find_package(PkgConfig) +find_package(PkgConfig QUIET) +unset(FPHSA_NAME_MISMATCHED) if(PKG_CONFIG_FOUND) - pkg_check_modules (GNUTLS gnutls) + pkg_check_modules(GNUTLS gnutls QUIET) endif() if(NOT GNUTLS_FOUND) |