summaryrefslogtreecommitdiffstats
path: root/cmake/FindLibsystemd.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/FindLibsystemd.cmake
parentc107525edb7f681db4748ae4a1087423f18ec10a (diff)
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/FindLibsystemd.cmake')
-rw-r--r--cmake/FindLibsystemd.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindLibsystemd.cmake b/cmake/FindLibsystemd.cmake
index a6baa3cc63..372a718027 100644
--- a/cmake/FindLibsystemd.cmake
+++ b/cmake/FindLibsystemd.cmake
@@ -3,7 +3,7 @@
find_package(PkgConfig QUIET)
-pkg_check_modules(Libsystemd libsystemd IMPORTED_TARGET)
+pkg_check_modules(Libsystemd IMPORTED_TARGET "libsystemd")
if (NOT TARGET PkgConfig::Libsystemd)
set(Libsystemd_FOUND 0)