From fecdffbbf4d0ddb03efce5a66199e071bc3ccfb8 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 14 May 2023 22:14:33 +0400 Subject: [PATCH] Fix a D-Bus condition in kcoreaddons To fix macOS build --- external/kcoreaddons/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/kcoreaddons/CMakeLists.txt b/external/kcoreaddons/CMakeLists.txt index dcf4da9..dda874f 100644 --- a/external/kcoreaddons/CMakeLists.txt +++ b/external/kcoreaddons/CMakeLists.txt @@ -47,7 +47,7 @@ if (NOT LINUX) ) endif() -if (TARGET Qt::DBus) +if (LINUX AND TARGET Qt::DBus) set_source_files_properties(${kcoreaddons_src}/io/org.freedesktop.portal.FileTransfer.xml PROPERTIES INCLUDE ${kcoreaddons_src}/io/dbustypes_p.h) qt_add_dbus_interface(_dbus_SRCS ${kcoreaddons_src}/io/org.freedesktop.portal.FileTransfer.xml org.freedesktop.portal.FileTransfer)