mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
libcloudproviders: Use DEFINE_VARIABLES to install in the correct directory
Conditionnaly require CMake 3.28 to install in the right directory. Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
This commit is contained in:
parent
baa19e485c
commit
6e1e8a8bdc
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue