From 10aaeef88ff507c474b140e4330bf0f600b86070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Fri, 11 Feb 2022 21:51:02 +0100 Subject: [PATCH] Add check for Android NDK 23 to AndroidAppBuilder (#65197) We recently bumped the Android NDK in https://github.com/dotnet/runtime/pull/64567, add a check to CMakeLists-android.txt to validate it. --- src/tasks/AndroidAppBuilder/Templates/CMakeLists-android.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tasks/AndroidAppBuilder/Templates/CMakeLists-android.txt b/src/tasks/AndroidAppBuilder/Templates/CMakeLists-android.txt index 91c289d984eda..b3032a9e5557e 100644 --- a/src/tasks/AndroidAppBuilder/Templates/CMakeLists-android.txt +++ b/src/tasks/AndroidAppBuilder/Templates/CMakeLists-android.txt @@ -4,6 +4,10 @@ project(monodroid) enable_language(C ASM) +if(ANDROID_NDK_MAJOR VERSION_LESS "23") + message(FATAL_ERROR "Error: need at least Android NDK 23, got ${ANDROID_NDK_REVISION}!") +endif() + add_library( monodroid SHARED