Skip to content

Commit

Permalink
Merge pull request #6137 from tintou/tintou/pkgconfig-define-variables
Browse files Browse the repository at this point in the history
libcloudproviders: Use DEFINE_VARIABLES to install in the correct directory
  • Loading branch information
mgallien authored Mar 20, 2024
2 parents baa19e4 + 6e1e8a8 commit 23c812e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell_integration/libcloudproviders/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})
Expand Down

0 comments on commit 23c812e

Please sign in to comment.