From: Ralf Habacker Date: Thu, 23 Apr 2020 16:41:03 +0000 (+0200) Subject: cmake: Use CMAKE_INSTALL_FULL_ for configuration and state X-Git-Tag: dbus-1.13.18~4^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f3368b4902d8b0dd3c85eb9628d55424ab42cfb;p=thirdparty%2Fdbus.git cmake: Use CMAKE_INSTALL_FULL_ for configuration and state This means we apply GNUInstallDirs' various special cases when the prefix is /, /usr or something starting with /opt; these are not applied when installing to CMAKE_INSTALL_. See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html#special-cases --- diff --git a/bus/CMakeLists.txt b/bus/CMakeLists.txt index f56bbb859..5d76573d0 100644 --- a/bus/CMakeLists.txt +++ b/bus/CMakeLists.txt @@ -107,16 +107,16 @@ set_target_properties(dbus-daemon PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIEN install(TARGETS dbus-daemon ${INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/session.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy-config/session.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy-config/session.conf DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/dbus-1) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/session.d) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services) if(NOT WIN32) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/system.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy-config/system.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy-config/system.conf DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/dbus-1) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/system.d) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/system-services) - install(DIRECTORY DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}/run/dbus) + install(DIRECTORY DESTINATION ${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/run/dbus) endif() if(DBUS_SERVICE) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 23f567b52..43d4df439 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -129,7 +129,7 @@ if(NOT WIN32) endif() # create the /var/lib/dbus directory for dbus-uuidgen -install(DIRECTORY DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}/lib/dbus) +install(DIRECTORY DESTINATION ${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/dbus) set(EXAMPLES_SCRIPTS GetAllMatchRules.py