diff --git a/shell_integration/libcloudproviders/CMakeLists.txt b/shell_integration/libcloudproviders/CMakeLists.txt index 2e7349ef7834f..78bea716e127b 100644 --- a/shell_integration/libcloudproviders/CMakeLists.txt +++ b/shell_integration/libcloudproviders/CMakeLists.txt @@ -1,5 +1,9 @@ macro(dbus_add_activation_service _sources) +if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.28.0") + pkg_get_variable(_install_dir dbus-1 session_bus_services_dir DEFINE_VARIABLES datadir=${CMAKE_INSTALL_DATADIR}) +else() pkg_get_variable(_install_dir dbus-1 session_bus_services_dir) +endif() foreach (_i ${_sources}) get_filename_component(_service_file ${_i} ABSOLUTE) string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})