From fb5cf5be15781be42f7aca21829937b28b98e955 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 26 Jun 2020 18:27:09 +0200 Subject: [PATCH] CMake: Fix some incorrectly included FindPkgConfig modules This gets rid of a few warnings during configuration. Task-number: QTBUG-85276 Change-Id: I07d2fdfd8d3f81f1d780528ee6350e1a3ded9523 Reviewed-by: Joerg Bornemann --- cmake/FindATSPI2.cmake | 2 +- cmake/FindGTK3.cmake | 2 +- cmake/FindXKB_COMMON_X11.cmake | 2 +- cmake/FindXRender.cmake | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/FindATSPI2.cmake b/cmake/FindATSPI2.cmake index ca0045635b..93e09cadbf 100644 --- a/cmake/FindATSPI2.cmake +++ b/cmake/FindATSPI2.cmake @@ -1,4 +1,4 @@ -include(FindPkgConfig) +find_package(PkgConfig) pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET) diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake index 9423eb4b9b..2f853a98c1 100644 --- a/cmake/FindGTK3.cmake +++ b/cmake/FindGTK3.cmake @@ -1,4 +1,4 @@ -include(FindPkgConfig) +find_package(PkgConfig) pkg_check_modules(GTK3 "gtk+-3.0 >= 3.6" IMPORTED_TARGET) diff --git a/cmake/FindXKB_COMMON_X11.cmake b/cmake/FindXKB_COMMON_X11.cmake index 61b4ba82e7..a54a0e7c0b 100644 --- a/cmake/FindXKB_COMMON_X11.cmake +++ b/cmake/FindXKB_COMMON_X11.cmake @@ -1,4 +1,4 @@ -include(FindPkgConfig) +find_package(PkgConfig) pkg_check_modules(XKB_COMMON_X11 "xkbcommon-x11>=0.4.1" IMPORTED_TARGET) diff --git a/cmake/FindXRender.cmake b/cmake/FindXRender.cmake index 246a47e18c..5291e666ba 100644 --- a/cmake/FindXRender.cmake +++ b/cmake/FindXRender.cmake @@ -1,4 +1,4 @@ -include(FindPkgConfig) +find_package(PkgConfig) if(NOT TARGET PkgConfig::XRender) pkg_check_modules(XRender xrender IMPORTED_TARGET)