Fix libsystemd find module name

At least on Ubuntu the name of the pkg config package
is libsystemd and not systemd.

This fixes libsystemd showing up as not found in the feature
summary.

Change-Id: I099a253026ca8096b9e2f348a5f35209d44acc6c
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: Qt CMake Build Bot
bb10
Alexandru Croitor 2019-09-27 15:12:46 +02:00
parent fe1a018d00
commit 1daaaf74a6
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
find_package(PkgConfig)
pkg_check_modules(Libsystemd systemd IMPORTED_TARGET)
pkg_check_modules(Libsystemd libsystemd IMPORTED_TARGET)
if (NOT TARGET PkgConfig::Libsystemd)
set(Libsystemd_FOUND 0)