Add check for Android NDK 23 to AndroidAppBuilder (#65197)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 11 Feb 2022 20:51:02 +0000 (21:51 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 20:51:02 +0000 (21:51 +0100)
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

index 91c289d..b3032a9 100644 (file)
@@ -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