From 29cb152b9b1fcee3a411bed7e072965b703d3003 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 17 Apr 2018 04:46:34 +0200 Subject: Android: Make sure variable is defined before using it --- toolchain/ECMAndroidDeployQt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/ECMAndroidDeployQt.cmake') 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() -- cgit v1.2.1