Clarify condition in Qt version check for Quick GUI

This commit is contained in:
Martchus 2024-04-02 15:07:14 +02:00
parent e095dc904f
commit 3c706b614e
1 changed files with 1 additions and 2 deletions

View File

@ -154,8 +154,7 @@ endif ()
# require Qt 6 for the Qt Quick GUI
if (QUICK_GUI
AND MAJOR_QT_VERSION VERSION_LESS 6
OR MAJOR_QT_VERSION VERSION_GREATER_EQUAL 7)
AND (MAJOR_QT_VERSION VERSION_LESS 6 OR MAJOR_QT_VERSION VERSION_GREATER_EQUAL 7))
message(FATAL_ERROR "The Qt Quick GUI is only compatible with Qt 6 (but Qt ${MAJOR_QT_VERSION} was found).")
endif ()