mirror of
https://github.com/QuasarApp/qt-android-cmake.git
synced 2025-05-02 00:09:36 +00:00
added find the QT_VERSION_MAJOR
This commit is contained in:
parent
83cc28a916
commit
6eb7734734
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user