Skip to content

Commit

Permalink
CMake: Mark all find_package(PkgConfig) to be quiet
Browse files Browse the repository at this point in the history
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ø <[email protected]>
  • Loading branch information
alcroito committed Jun 29, 2020
1 parent 63f09a9 commit 375831a
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmake/3rdparty/kwin/FindLibdrm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion cmake/3rdparty/kwin/FindLibinput.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion cmake/3rdparty/kwin/FindXKB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion cmake/3rdparty/kwin/Findgbm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindATSPI2.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindDirectFB.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(DirectFB directfb IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindGSSAPI.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_GSSAPI QUIET krb5-gssapi)

find_path(GSSAPI_INCLUDE_DIRS
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindGTK3.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(GTK3 "gtk+-3.0 >= 3.6" IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindLibproxy.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(Libproxy libproxy-1.0 IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindLibsystemd.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(Libsystemd libsystemd IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindLibudev.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(Libudev libudev IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindMtdev.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(Mtdev mtdev IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ``MySQL::MySQL``
# The mysql client library

find_package(PkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_MySQL QUIET mysqlclient)

find_path(MySQL_INCLUDE_DIRS
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindTslib.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(Tslib tslib IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindXKB_COMMON_X11.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

pkg_check_modules(XKB_COMMON_X11 "xkbcommon-x11>=0.4.1" IMPORTED_TARGET)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindXRender.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(PkgConfig)
find_package(PkgConfig QUIET)

if(NOT TARGET PkgConfig::XRender)
pkg_check_modules(XRender xrender IMPORTED_TARGET)
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindZSTD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ``ZSTD::ZSTD``
# The zstd library

find_package(PkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_ZSTD QUIET libzstd)

find_path(ZSTD_INCLUDE_DIRS
Expand Down

0 comments on commit 375831a

Please sign in to comment.