summaryrefslogtreecommitdiff
path: root/cmake/FindLibproxy.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/FindLibproxy.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/FindLibproxy.cmake')
-rw-r--r--cmake/FindLibproxy.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindLibproxy.cmake b/cmake/FindLibproxy.cmake
index 8885117fc8..4ee3943220 100644
--- a/cmake/FindLibproxy.cmake
+++ b/cmake/FindLibproxy.cmake
@@ -3,7 +3,7 @@
find_package(PkgConfig QUIET)
-pkg_check_modules(Libproxy libproxy-1.0 IMPORTED_TARGET)
+pkg_check_modules(Libproxy IMPORTED_TARGET "libproxy-1.0")
if (NOT TARGET PkgConfig::Libproxy)
set(Libproxy_FOUND 0)