diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-01-05 19:55:29 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-01-05 19:55:29 +0300 |
commit | 0a380d4edd5ba7da3c58f4b76dabeae4dc0e79d9 (patch) | |
tree | 6ee736289e0a024533aa6b4a56492e79a23ae98d /src/gui/CMakeLists.txt | |
parent | 1cd21e7ae8113d27aab71f8bccd300ab439a9eff (diff) | |
parent | 8620dc8b793dceef3ac21f902baaff69b312af22 (diff) |
Merge remote-tracking branch 'origin/2.7' into master
Diffstat (limited to 'src/gui/CMakeLists.txt')
-rw-r--r-- | src/gui/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index a8b170e52..cf61cb041 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -170,8 +170,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() |