1
0
Fork 0

Fix a D-Bus condition in kcoreaddons

To fix macOS build
This commit is contained in:
Ilya Fedin 2023-05-14 22:14:33 +04:00 committed by John Preston
parent 9abd685bf4
commit fecdffbbf4

View file

@ -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)