From 375831a3dcf2f8862723a45ecf292da305db198b Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 26 Jun 2020 20:41:29 +0200 Subject: CMake: Mark all find_package(PkgConfig) to be quiet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the amount of warning messages when the pkg-config feature is disabled. Task-number: QTBUG-85276 Change-Id: I11a6dfb6273a1e48c47d1ef5c1a5f70ba990fbc0 Reviewed-by: Tor Arne Vestbø --- cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake | 2 +- cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake | 2 +- cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake | 2 +- cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake | 2 +- cmake/3rdparty/kwin/FindLibdrm.cmake | 2 +- cmake/3rdparty/kwin/FindLibinput.cmake | 2 +- cmake/3rdparty/kwin/FindXKB.cmake | 2 +- cmake/3rdparty/kwin/Findgbm.cmake | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cmake/3rdparty') diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake index 48e5172877..55ca2a99bd 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake @@ -68,7 +68,7 @@ ecm_find_package_version_check(EGL) # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls -find_package(PkgConfig) +find_package(PkgConfig QUIET) pkg_check_modules(PKG_EGL QUIET egl) set(EGL_DEFINITIONS ${PKG_EGL_CFLAGS_OTHER}) diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake index 993535123a..1e13104187 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake @@ -51,7 +51,7 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #============================================================================= -find_package(PkgConfig) +find_package(PkgConfig QUIET) pkg_check_modules(PC_GLIB2 QUIET glib-2.0) find_path(GLIB2_INCLUDE_DIRS diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake index dd55fd7b30..8547175213 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindX11_XCB.cmake @@ -69,7 +69,7 @@ ecm_find_package_version_check(X11_XCB) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls -find_package(PkgConfig) +find_package(PkgConfig QUIET) pkg_check_modules(PKG_X11_XCB QUIET x11-xcb) set(X11_XCB_DEFINITIONS ${PKG_X11_XCB_CFLAGS_OTHER}) diff --git a/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake b/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake index 75aa3a94ca..c1df19d504 100644 --- a/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake +++ b/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake @@ -214,7 +214,7 @@ macro(ecm_find_package_handle_library_components module_name) endif() include(FindPackageHandleStandardArgs) - find_package(PkgConfig) + find_package(PkgConfig QUIET) foreach(ecm_fpwc_comp ${ECM_FPWC_COMPONENTS}) set(ecm_fpwc_dep_vars) set(ecm_fpwc_dep_targets) diff --git a/cmake/3rdparty/kwin/FindLibdrm.cmake b/cmake/3rdparty/kwin/FindLibdrm.cmake index 10822e693a..48598e061b 100644 --- a/cmake/3rdparty/kwin/FindLibdrm.cmake +++ b/cmake/3rdparty/kwin/FindLibdrm.cmake @@ -67,7 +67,7 @@ endif() if(NOT WIN32) # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) + find_package(PkgConfig QUIET) pkg_check_modules(PKG_Libdrm QUIET libdrm) set(Libdrm_DEFINITIONS ${PKG_Libdrm_CFLAGS_OTHER}) diff --git a/cmake/3rdparty/kwin/FindLibinput.cmake b/cmake/3rdparty/kwin/FindLibinput.cmake index b856e0bbcb..7eda173bee 100644 --- a/cmake/3rdparty/kwin/FindLibinput.cmake +++ b/cmake/3rdparty/kwin/FindLibinput.cmake @@ -67,7 +67,7 @@ endif() if(NOT WIN32) # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) + find_package(PkgConfig QUIET) pkg_check_modules(PKG_Libinput QUIET libinput) set(Libinput_DEFINITIONS ${PKG_Libinput_CFLAGS_OTHER}) diff --git a/cmake/3rdparty/kwin/FindXKB.cmake b/cmake/3rdparty/kwin/FindXKB.cmake index 0d599df0fd..295580abee 100644 --- a/cmake/3rdparty/kwin/FindXKB.cmake +++ b/cmake/3rdparty/kwin/FindXKB.cmake @@ -47,7 +47,7 @@ endif() if(NOT WIN32) # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) + find_package(PkgConfig QUIET) pkg_check_modules(PKG_XKB QUIET xkbcommon) set(XKB_DEFINITIONS ${PKG_XKB_CFLAGS_OTHER}) diff --git a/cmake/3rdparty/kwin/Findgbm.cmake b/cmake/3rdparty/kwin/Findgbm.cmake index 6dfc895daa..a77f7e86db 100644 --- a/cmake/3rdparty/kwin/Findgbm.cmake +++ b/cmake/3rdparty/kwin/Findgbm.cmake @@ -67,7 +67,7 @@ endif() if(NOT WIN32) # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) + find_package(PkgConfig QUIET) pkg_check_modules(PKG_gbm QUIET gbm) set(gbm_DEFINITIONS ${PKG_gbm_CFLAGS_OTHER}) -- cgit v1.2.3