Skip to content

Commit

Permalink
Check for Qt6 before using versionless qt macro in libdbusmenuqt (#57)
Browse files Browse the repository at this point in the history
@Alt37: The new macro was added in Qt 5.15, and Kubuntu only has 5.12.
#57 (comment)
  • Loading branch information
Zren committed Jan 19, 2022
1 parent 6e4386c commit c6421c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libdbusmenuqt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ set_source_files_properties(com.canonical.dbusmenu.xml PROPERTIES
INCLUDE "dbusmenutypes_p.h"
CLASSNAME DBusMenuInterface
)
qt_add_dbus_interface(libdbusmenu_SRCS com.canonical.dbusmenu.xml dbusmenu_interface)

if (Qt6_FOUND)
qt_add_dbus_interface(libdbusmenu_SRCS com.canonical.dbusmenu.xml dbusmenu_interface)
elseif(Qt5_FOUND)
qt5_add_dbus_interface(libdbusmenu_SRCS com.canonical.dbusmenu.xml dbusmenu_interface)
endif()



add_library(dbusmenuqt STATIC ${libdbusmenu_SRCS})
Expand Down

0 comments on commit c6421c4

Please sign in to comment.