Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-01-04 14:45:17 +0300
committerHannah von Reth <vonreth@kde.org>2021-01-05 19:44:24 +0300
commit29706e127b5355538de15517a0233dfe9dcc5881 (patch)
treed7b37b984caeba86c1f9ee91df3ea29ffbc60a5f
parent5db3020fa709c03eea87f87fc68da6f79eb262c9 (diff)
CMake: Only link Qt5::DBus if it was found
-rw-r--r--src/gui/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 7d7774e72..51824e9af 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -172,8 +172,10 @@ elseif( WIN32 )
elseif(UNIX AND NOT APPLE )
## handle DBUS for Fdo notifications
find_package(Qt5 COMPONENTS DBus)
- target_link_libraries(owncloudCore PUBLIC Qt5::DBus)
- target_compile_definitions(owncloudCore PUBLIC "USE_FDO_NOTIFICATIONS")
+ if (TARGET Qt5::DBus)
+ target_link_libraries(owncloudCore PUBLIC Qt5::DBus)
+ target_compile_definitions(owncloudCore PUBLIC "USE_FDO_NOTIFICATIONS")
+ endif()
target_sources(owncloudCore PRIVATE folderwatcher_linux.cpp)
endif()