aboutsummaryrefslogtreecommitdiff
path: root/toolchain/ECMAndroidDeployQt.cmake
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2018-04-17 04:46:34 +0200
committerAleix Pol <aleixpol@kde.org>2018-04-17 04:46:34 +0200
commit29cb152b9b1fcee3a411bed7e072965b703d3003 (patch)
treecff42a560e6e00039083a8a6b4951449fe0a59ce /toolchain/ECMAndroidDeployQt.cmake
parentcf750d4eeaf79b048c6ad088fd4f1174c64091fb (diff)
downloadextra-cmake-modules-29cb152b9b1fcee3a411bed7e072965b703d3003.tar.gz
extra-cmake-modules-29cb152b9b1fcee3a411bed7e072965b703d3003.tar.bz2
Android: Make sure variable is defined before using it
Diffstat (limited to 'toolchain/ECMAndroidDeployQt.cmake')
-rw-r--r--toolchain/ECMAndroidDeployQt.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/ECMAndroidDeployQt.cmake b/toolchain/ECMAndroidDeployQt.cmake
index 70319914..da786ed8 100644
--- a/toolchain/ECMAndroidDeployQt.cmake
+++ b/toolchain/ECMAndroidDeployQt.cmake
@@ -1,8 +1,8 @@
find_package(Qt5Core REQUIRED)
function(ecm_androiddeployqt QTANDROID_EXPORTED_TARGET ECM_ADDITIONAL_FIND_ROOT_PATH ANDROID_APK_DIR)
+ get_filename_component(_qt5Core_install_prefix "${Qt5_DIR}/../../../" ABSOLUTE)
if(NOT ANDROID_APK_DIR)
- get_filename_component(_qt5Core_install_prefix "${Qt5_DIR}/../../../" ABSOLUTE)
set(ANDROID_APK_DIR "${_qt5Core_install_prefix}/src/android/templates/")
endif()