Merge pull request #6137 from tintou/tintou/pkgconfig-define-variables
libcloudproviders: Use DEFINE_VARIABLES to install in the correct directory
This commit is contained in:
commit
23c812e224
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue