Avoid duplicate declarations with latest libcloudproviders

Only install the .ini if the target version doen't support the .desktop file
declaration.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
This commit is contained in:
Corentin Noël 2023-12-09 17:11:19 +01:00 committed by Matthieu Gallien
parent 97ac36e614
commit 2238dab3f9
1 changed files with 4 additions and 1 deletions

View File

@ -34,5 +34,8 @@ IF (Qt5DBus_FOUND)
set(LIBCLOUDPROVIDERS_DBUS_OBJECT_PATH "/${DBUS_PREFIX}/${DBUS_VENDOR}/${DBUS_APPLICATION_NAME}")
dbus_add_activation_service(org.freedesktop.CloudProviders.service.in)
libcloudproviders_add_config(org.freedesktop.CloudProviders.ini.in)
# The .ini file has been replaced by a declaration in the .desktop file in 0.3.3+
if (${CLOUDPROVIDERS_VERSION} VERSION_LESS "0.3.3")
libcloudproviders_add_config(org.freedesktop.CloudProviders.ini.in)
endif ()
ENDIF ()