• Clemens Lang's avatar
    cmake: Avoid overwriting PKG_CONFIG_PATH env var · 3525cc04
    Clemens Lang authored
    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: 's avatarClemens Lang <clemens.lang@bmw-carit.de>
    3525cc04
Name
Last commit
Last update
..
bus Loading commit data...
modules Loading commit data...
ConfigureChecks.cmake Loading commit data...
DBus1Config.cmake.in Loading commit data...
DBus1Config.pkgconfig.in Loading commit data...
DBus1ConfigVersion.cmake.in Loading commit data...
bus-test.bat.cmake Loading commit data...
config.h.cmake Loading commit data...
dbus-env.bat.cmake Loading commit data...
i686-w64-mingw32.cmake Loading commit data...
x86_64-w64-mingw32.cmake Loading commit data...