From c1c05e94b61eb4e6935bfb14ddc338afae9d96d1 Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Wed, 12 May 2021 12:51:48 -0400 Subject: cmake: fix finding PkgConfig to work robustly (without CMake warnings) --- host/cmake/Modules/UHDConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/cmake/Modules/UHDConfig.cmake.in') diff --git a/host/cmake/Modules/UHDConfig.cmake.in b/host/cmake/Modules/UHDConfig.cmake.in index 299a8ef48..a45fbd3f7 100644 --- a/host/cmake/Modules/UHDConfig.cmake.in +++ b/host/cmake/Modules/UHDConfig.cmake.in @@ -39,7 +39,7 @@ if(UHD_DIR) list(APPEND UHD_LIBDIR_HINTS ${UHD_DIR}/lib) endif() -include(FindPkgConfig) +find_package(PkgConfig QUIET) if(PKG_CONFIG_FOUND) if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.0") set(UHD_QUIET "QUIET") -- cgit v1.2.3