mirror of
https://github.com/QuasarApp/qt-android-cmake.git
synced 2025-04-29 07:04:37 +00:00
Merge pull request #37 from pthom/patch-1
Use env var ANDROID_SDK or ANDROID_SDK_ROOT
This commit is contained in:
commit
250fdb2caa
@ -26,7 +26,10 @@ message(STATUS "Found Qt for Android: ${QT_ANDROID_QT_ROOT}")
|
|||||||
if(NOT QT_ANDROID_SDK_ROOT)
|
if(NOT QT_ANDROID_SDK_ROOT)
|
||||||
set(QT_ANDROID_SDK_ROOT $ENV{ANDROID_SDK})
|
set(QT_ANDROID_SDK_ROOT $ENV{ANDROID_SDK})
|
||||||
if(NOT QT_ANDROID_SDK_ROOT)
|
if(NOT QT_ANDROID_SDK_ROOT)
|
||||||
message(FATAL_ERROR "Could not find the Android SDK. Please set either the ANDROID_SDK environment variable, or the QT_ANDROID_SDK_ROOT CMake variable to the root directory of the Android SDK")
|
set(QT_ANDROID_SDK_ROOT $ENV{ANDROID_SDK_ROOT})
|
||||||
|
if(NOT QT_ANDROID_SDK_ROOT)
|
||||||
|
message(FATAL_ERROR "Could not find the Android SDK. Please set either the ANDROID_SDK environment variable, or the QT_ANDROID_SDK_ROOT CMake variable to the root directory of the Android SDK")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
string(REPLACE "\\" "/" QT_ANDROID_SDK_ROOT ${QT_ANDROID_SDK_ROOT}) # androiddeployqt doesn't like backslashes in paths
|
string(REPLACE "\\" "/" QT_ANDROID_SDK_ROOT ${QT_ANDROID_SDK_ROOT}) # androiddeployqt doesn't like backslashes in paths
|
||||||
|
Loading…
x
Reference in New Issue
Block a user