dbus/cmake
Clemens Lang 6e432ed51e cmake: Avoid overwriting PKG_CONFIG_PATH env var
The CMake config file installed by DBus will run in the context of other
projects. Consequently, changing the value of the PKG_CONFIG_DIR,
PKG_CONFIG_PATH or PKG_CONFIG_LIBDIR environment variables will affect
any further calls to pkg-config made by such projects, which can cause
problems.

A common case of this happening are pkg-config files installed in
usr/share/pkgconfig for .pc files that are architecture-independent, as
for example systemd does.

Avoid clobbering the environment variables by saving and restoring their
values. Note that for some of the variables, setting them to an empty
string is different from not setting them at all.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
(cherry picked from commit 3525cc045d)
Closes: dbus#267
2019-05-13 10:36:11 +01:00
..
bus build: Remove indirection from uses of Expat 2017-04-10 12:40:52 +01:00
dbus Add version info to dbus-1 target for non msvc builds on Windows too 2017-10-18 15:22:15 +02:00
doc Add dbus-update-activation-environment tool 2015-02-24 11:15:52 +00:00
modules cmake: Match AC_DEFINE more precisely, respecting [] quoting 2018-02-07 07:34:35 +00:00
test Add new test for waiting on pending calls in threads 2018-02-07 07:34:35 +00:00
tools Do not add custom UAC related manifest to cmake builds for MSVC on Windows 2017-10-23 11:07:17 +01:00
bus-test.bat.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
CMakeLists.txt Use cmake build in timestamp function to generate the build time stamp 2017-10-18 15:22:04 +02:00
config.h.cmake Add a unit test for the dbus-daemon resetting its fd limit 2018-02-20 18:42:53 +00:00
ConfigureChecks.cmake Add a unit test for the dbus-daemon resetting its fd limit 2018-02-20 18:42:53 +00:00
dbus-env.bat.cmake Split DBUS_SESSION_BUS_DEFAULT_ADDRESS into listen, connect addresses and set better defaults 2012-08-13 19:57:13 +01:00
DBus1Config.cmake.in cmake, autotools: Add find package config support for cmake clients 2017-03-20 14:18:45 +00:00
DBus1Config.pkgconfig.in cmake: Avoid overwriting PKG_CONFIG_PATH env var 2019-05-13 10:36:11 +01:00
DBus1ConfigVersion.cmake.in cmake, autotools: Add find package config support for cmake clients 2017-03-20 14:18:45 +00:00
i686-w64-mingw32.cmake add travis-ci.org build machinery 2015-12-02 00:53:01 +01:00
x86_64-w64-mingw32.cmake travis-ci: Add cross building support for mingw 64 bit compiler 2018-10-04 16:54:10 +01:00