summaryrefslogtreecommitdiff
path: root/cmake/FindGTK3.cmake
diff options
context:
space:
mode:
authorJohannes Kauffmann <johanneskauffmann@hotmail.com>2022-12-26 19:25:14 +0100
committerJohannes Kauffmann <johanneskauffmann@hotmail.com>2023-01-06 17:57:17 +0100
commit029e118a4e014c3751c4a8f6bcc41f85b78286d5 (patch)
treed4c02e1fc13be9c05214416d800fefc0f3476499 /cmake/FindGTK3.cmake
parentc107525edb7f681db4748ae4a1087423f18ec10a (diff)
downloadqtbase-029e118a4e014c3751c4a8f6bcc41f85b78286d5.tar.gz
CMake: Unify usage of pkg_check_modules
According to the CMake documentation, IMPORTED_TARGET should be specified before the moduleSpec, and after QUIET. Additionally, double-quote the moduleSpec everywhere, since before, it was only quoted in some cases. While this is not required for pkg_check_modules to work, it unifies the coding style. Pick-to: 6.5 Change-Id: Ic8ad708a8146f9b39ee40e9a719412441e231452 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'cmake/FindGTK3.cmake')
-rw-r--r--cmake/FindGTK3.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake
index be3c5c92da..221d5a34d1 100644
--- a/cmake/FindGTK3.cmake
+++ b/cmake/FindGTK3.cmake
@@ -7,7 +7,7 @@ set(__gtk3_required_version "${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION}")
if(__gtk3_required_version)
set(__gtk3_required_version " >= ${__gtk3_required_version}")
endif()
-pkg_check_modules(GTK3 "gtk+-3.0${__gtk3_required_version}" IMPORTED_TARGET)
+pkg_check_modules(GTK3 IMPORTED_TARGET "gtk+-3.0${__gtk3_required_version}")
if (NOT TARGET PkgConfig::GTK3)
set(GTK3_FOUND 0)