mart added a comment.
almost there :) since there is also a qmake mode to build for embedded, where dbus should be disabled as well, I would prefer to flip the logic. so, have a KIRIGAMI_ENABLE_DBUS which is undefined by default (so nothing to do in the .pri file) but having it defined by default in the main cmake file, so would become NOT(APPLE) AND NOT(DISABLE_DBUS)) find_package(Qt5DBus) add_definitions(-DKIRIGAMI_ENABLE_DBUS) endif() REPOSITORY R169 Kirigami REVISION DETAIL https://phabricator.kde.org/D13148 To: murillobernardes, mart, davidedmundson Cc: davidedmundson, plasma-devel, apol, mart, hein