mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-02 21:18:24 +02:00
cmake: Always try to find pkg-config
Commit 97bdefd4e2 move the
include(FindPkgConfig) call into a Linux-specific codepath, so pkg-config
was not being detected on FreeBSD. This mean that the check for
PKG_CONFIG_FOUND to determine whether to install .pc files later on
would always fail and .pc files were not installed on FreeBSD.
This commit is contained in:
parent
7ca69a9785
commit
82f5c96644
1 changed files with 5 additions and 1 deletions
|
|
@ -132,9 +132,13 @@ option(DBUS_DISABLE_ASSERT "Disable assertion checking" OFF)
|
|||
option(DBUS_ENABLE_STATS "enable bus daemon usage statistics" OFF)
|
||||
option(ENABLE_TRADITIONAL_ACTIVATION "Enable traditional activation (without using systemd)" ON)
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
if(DBUS_LINUX)
|
||||
add_auto_option(ENABLE_SYSTEMD "build with systemd at_console support" AUTO)
|
||||
include(FindPkgConfig)
|
||||
if (NOT PKG_CONFIG_FOUND)
|
||||
message(SEND_ERROR "pkg-config not found, this is required on Linux systems")
|
||||
endif()
|
||||
pkg_check_modules(SYSTEMD libsystemd>=209)
|
||||
if(NOT SYSTEMD_FOUND)
|
||||
pkg_check_modules(SYSTEMD libsystemd-login>=32 libsystemd-daemon>=32 libsystemd-journal>=32)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue