summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-13 12:43:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-13 12:44:04 (GMT)
commit375a69488410426bf7539746a3cf7367f18b41ad (patch)
treeae059827c9dddd888dc3685cdb66305162b6e308
parent595e440a3f35a1b9ca9f8b3d1b0a82b7696af46f (diff)
parent8e4aa63c7b784a88c23cc844300b90a964e4e2e4 (diff)
downloadCMake-375a69488410426bf7539746a3cf7367f18b41ad.zip
CMake-375a69488410426bf7539746a3cf7367f18b41ad.tar.gz
CMake-375a69488410426bf7539746a3cf7367f18b41ad.tar.bz2
Merge topic 'android-api-level-range'
8e4aa63c7b Android: show supported API level in error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5358
-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()