mirror of
https://github.com/QuasarApp/qt-android-cmake.git
synced 2025-04-28 14:44:35 +00:00
fix build
This commit is contained in:
parent
0989a8575f
commit
b2a1b3d87b
@ -16,12 +16,13 @@ if(NOT ANDROID)
|
||||
endif()
|
||||
|
||||
if(NOT QT_VERSION_MAJOR)
|
||||
message(FATAL_ERROR "Trying to use the CMake Android package without the QT_VERSION_MAJOR variable. Please set QT_VERSION_MAJOR varibale to 5 or 6 value before include the AndroidApk")
|
||||
message(WARNING "The QT_VERSION_MAJOR variable not definde by default use the qt5")
|
||||
set(QT_VERSION_MAJOR 5)
|
||||
endif()
|
||||
|
||||
# find the Qt root directory
|
||||
if(NOT Qt${QT_VERSION_MAJOR}Core_DIR)
|
||||
find_package(Qt5Core REQUIRED)
|
||||
find_package(Qt{QT_VERSION_MAJOR}Core REQUIRED)
|
||||
endif()
|
||||
get_filename_component(QT_ANDROID_QT_ROOT "${Qt${QT_VERSION_MAJOR}Core_DIR}/../../.." ABSOLUTE)
|
||||
message(STATUS "Found Qt for Android: ${QT_ANDROID_QT_ROOT}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user