added find the QT_VERSION_MAJOR

This commit is contained in:
Andrei Yankovich 2021-07-20 11:54:01 +03:00
parent 83cc28a916
commit 6eb7734734

View File

@ -16,8 +16,7 @@ if(NOT ANDROID)
endif()
if(NOT QT_VERSION_MAJOR)
message(WARNING "The QT_VERSION_MAJOR variable not definde by default use the qt5")
set(QT_VERSION_MAJOR 5)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
endif()
# find the Qt root directory