From ef4d9bcba25ceb5666f93cc4f4060fe83f8797cc Mon Sep 17 00:00:00 2001 From: Stanislav Angelovic Date: Tue, 14 Dec 2021 21:35:11 +0100 Subject: [PATCH] chore: add note on libsystemd-dev when libsystemd pkgconfig file is not found --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c977286..c790d0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +19,10 @@ if(NOT BUILD_LIBSYSTEMD) pkg_check_modules(Systemd IMPORTED_TARGET GLOBAL libsystemd>=236) if(NOT TARGET PkgConfig::Systemd) message(FATAL_ERROR "libsystemd of version at least 236 is required, but was not found " - "(you may turn BUILD_LIBSYSTEMD on for sdbus-c++ to try downloading " - "and building libsystemd in as part of sdbus-c++ during configuration)") + "(if you have systemd in your OS, you may want to install package containing pkgconfig " + " files for libsystemd library. On Ubuntu, that is libsystemd-dev. " + " Alternatively, you may turn BUILD_LIBSYSTEMD on for sdbus-c++ to download, build " + "and incorporate libsystemd as embedded library within sdbus-c++)") endif() add_library(Systemd::Libsystemd ALIAS PkgConfig::Systemd) string(REGEX MATCHALL "([0-9]+)" SYSTEMD_VERSION_LIST "${Systemd_VERSION}")