From 727fd3c25c4deadd42cf3d6d44a34b8b5912bd45 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 26 Oct 2019 10:20:00 -0700 Subject: Fixed Android build error when using external CMake (fixed https://github.com/DiligentGraphics/DiligentEngine/issues/61) --- Common/NativeApp/Android/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/NativeApp/Android') diff --git a/Common/NativeApp/Android/CMakeLists.txt b/Common/NativeApp/Android/CMakeLists.txt index e9618cf..87d8f3c 100644 --- a/Common/NativeApp/Android/CMakeLists.txt +++ b/Common/NativeApp/Android/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required (VERSION 3.6) -include(AndroidNdkModules) -android_ndk_import_module_native_app_glue() +add_library(native_app_glue ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c) +target_link_libraries(native_app_glue log) target_include_directories(native_app_glue INTERFACE ${ANDROID_NDK}/sources/android/native_app_glue) set_common_target_properties(native_app_glue) -- cgit v1.2.3