diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2021-04-12 18:25:42 +0300 |
---|---|---|
committer | Nicolas Fella (Rebase PR Action) <nicolasfella@users.noreply.github.com> | 2021-04-13 14:29:29 +0300 |
commit | b8879dbf078dcac482845a9d80cceca7e706cb64 (patch) | |
tree | e3c88d39ccd071fc787e7d13f5fe866fd4442a08 /shell_integration | |
parent | 478ca784b1e33257b55ee55ece892078f350319e (diff) |
Only include libcloudproviders dir when cloudproviders is found
Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
Diffstat (limited to 'shell_integration')
-rw-r--r-- | shell_integration/CMakeLists.txt | 3 | ||||
-rw-r--r-- | shell_integration/libcloudproviders/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/shell_integration/CMakeLists.txt b/shell_integration/CMakeLists.txt index 49860ad1e..c4d45f7ae 100644 --- a/shell_integration/CMakeLists.txt +++ b/shell_integration/CMakeLists.txt @@ -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() diff --git a/shell_integration/libcloudproviders/CMakeLists.txt b/shell_integration/libcloudproviders/CMakeLists.txt index 45c8b0f32..1dd464d25 100644 --- a/shell_integration/libcloudproviders/CMakeLists.txt +++ b/shell_integration/libcloudproviders/CMakeLists.txt @@ -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}") |