diff --git a/cmake/modules/AndroidApk.cmake b/cmake/modules/AndroidApk.cmake index 9f14e08..d074f10 100644 --- a/cmake/modules/AndroidApk.cmake +++ b/cmake/modules/AndroidApk.cmake @@ -19,6 +19,10 @@ if (NOT EXISTS "${CMAKE_ANDROID_NDK}") message(FATAL_ERROR "CMAKE_ANDROID_NDK must contain the path of the Android NDK.") endif () +if (NOT META_ANDROID_PACKAGE_NAME) + message(FATAL_ERROR "Attempt to load AndroidApk.cmake without having set ANDROID_PACKAGE_NAME.") +endif () + # find "android" subdirectory in the source directory and check for AndroidManifest.xml set(ANDROID_APK_SUBDIR "${CMAKE_CURRENT_SOURCE_DIR}/android") if (NOT IS_DIRECTORY "${ANDROID_APK_SUBDIR}")