mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Android: show supported API level in error message
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user