Only include libcloudproviders dir when cloudproviders is found

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
Nicolas Fella 2021-04-12 17:25:42 +02:00 committed by Nicolas Fella (Rebase PR Action)
parent 478ca784b1
commit b8879dbf07
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ if( UNIX AND NOT APPLE )
message("Dolphin plugin disabled: KDE Frameworks 5.16 not found")
endif()
endif()
endif()
if(CLOUDPROVIDERS_FOUND)
add_subdirectory(libcloudproviders)
endif()

View File

@ -42,7 +42,7 @@ endmacro(libcloudproviders_add_config _sources)
find_package(Qt5 5.12 COMPONENTS DBus)
IF (UNIX AND Qt5DBus_FOUND AND LIBCLOUDPROVIDERS_FOUND)
IF (Qt5DBus_FOUND)
STRING(TOLOWER "${APPLICATION_VENDOR}" DBUS_VENDOR)
STRING(REGEX REPLACE "[^A-z0-9]" "" DBUS_VENDOR "${DBUS_VENDOR}")
STRING(REGEX REPLACE "[^A-z0-9]" "" DBUS_APPLICATION_NAME "${APPLICATION_SHORTNAME}")