summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Android/common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Android/common.cmake')
-rw-r--r--Tests/RunCMake/Android/common.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/Android/common.cmake b/Tests/RunCMake/Android/common.cmake
index a679f6c..7eac5d6 100644
--- a/Tests/RunCMake/Android/common.cmake
+++ b/Tests/RunCMake/Android/common.cmake
@@ -1,6 +1,10 @@
enable_language(C)
enable_language(CXX)
+if(NOT ANDROID)
+ message(SEND_ERROR "CMake variable 'ANDROID' is not set to a true value.")
+endif()
+
foreach(f
"${CMAKE_C_ANDROID_TOOLCHAIN_PREFIX}gcc${CMAKE_C_ANDROID_TOOLCHAIN_SUFFIX}"
"${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}g++${CMAKE_CXX_ANDROID_TOOLCHAIN_SUFFIX}"