Clarify condition in Qt version check for Quick GUI
This commit is contained in:
parent
e095dc904f
commit
3c706b614e
|
@ -154,8 +154,7 @@ endif ()
|
||||||
|
|
||||||
# require Qt 6 for the Qt Quick GUI
|
# require Qt 6 for the Qt Quick GUI
|
||||||
if (QUICK_GUI
|
if (QUICK_GUI
|
||||||
AND MAJOR_QT_VERSION VERSION_LESS 6
|
AND (MAJOR_QT_VERSION VERSION_LESS 6 OR MAJOR_QT_VERSION VERSION_GREATER_EQUAL 7))
|
||||||
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).")
|
message(FATAL_ERROR "The Qt Quick GUI is only compatible with Qt 6 (but Qt ${MAJOR_QT_VERSION} was found).")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue