build(cmake): fix build if Qt 6 is not present

This commit is contained in:
Oleg Shparber 2024-08-04 13:27:26 -04:00
parent 04c525b3d8
commit dff598cfc6

View File

@ -23,7 +23,7 @@ set(PROJECT_COPYRIGHT "© 2013-2024 Oleg Shparber and other contributors")
# Find available major Qt version. It will be stored in QT_VERSION_MAJOR.
if(NOT ZEAL_USE_QT5)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(QT NAMES Qt6 COMPONENTS Core)
set(QT_MINIMUM_VERSION 6.2.0)
endif()