From 3c706b614e26a3a45691fb0693521c631c6ed67a Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 2 Apr 2024 15:07:14 +0200 Subject: [PATCH] Clarify condition in Qt version check for Quick GUI --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f283c47..602bf39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()