ソースを参照

Only include libcloudproviders dir when cloudproviders is found

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
Nicolas Fella 4 年 前
コミット
b8879dbf07

+ 3 - 0
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()
 

+ 1 - 1
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}")