summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android-Determine.cmake
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-10-12 22:58:33 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-13 12:40:44 (GMT)
commit8e4aa63c7b784a88c23cc844300b90a964e4e2e4 (patch)
treec301d60549913436dd6fc4c3688ec6e8c763cb56 /Modules/Platform/Android-Determine.cmake
parent01ae8149b83bedc71f6f662e21edc7307a66c01f (diff)
downloadCMake-8e4aa63c7b784a88c23cc844300b90a964e4e2e4.zip
CMake-8e4aa63c7b784a88c23cc844300b90a964e4e2e4.tar.gz
CMake-8e4aa63c7b784a88c23cc844300b90a964e4e2e4.tar.bz2
Android: show supported API level in error message
Diffstat (limited to 'Modules/Platform/Android-Determine.cmake')
-rw-r--r--Modules/Platform/Android-Determine.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/Android-Determine.cmake b/Modules/Platform/Android-Determine.cmake
index 58905df..f7d8d13 100644
--- a/Modules/Platform/Android-Determine.cmake
+++ b/Modules/Platform/Android-Determine.cmake
@@ -412,7 +412,8 @@ if(CMAKE_SYSTEM_VERSION)
if(CMAKE_SYSTEM_VERSION GREATER NDK_MAX_PLATFORM_LEVEL OR
CMAKE_SYSTEM_VERSION LESS NDK_MIN_PLATFORM_LEVEL)
message(FATAL_ERROR
- "Android: The API level ${CMAKE_SYSTEM_VERSION} is not supported by the NDK."
+ "Android: The API level ${CMAKE_SYSTEM_VERSION} is not supported by the NDK.\n"
+ "Choose one in the range of [${NDK_MIN_PLATFORM_LEVEL}, ${NDK_MAX_PLATFORM_LEVEL}]."
)
endif()
else()