summaryrefslogtreecommitdiffstats
path: root/Common/NativeApp/Android
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2019-10-26 17:20:00 +0000
committerEgor <egor.yusov@gmail.com>2019-10-26 17:20:00 +0000
commit727fd3c25c4deadd42cf3d6d44a34b8b5912bd45 (patch)
tree2aef83601df62bcf953fa75e512a2fb6c9a46e56 /Common/NativeApp/Android
parentLinux app: fixed window title (diff)
downloadDiligentEngine-727fd3c25c4deadd42cf3d6d44a34b8b5912bd45.tar.gz
DiligentEngine-727fd3c25c4deadd42cf3d6d44a34b8b5912bd45.zip
Fixed Android build error when using external CMake (fixed https://github.com/DiligentGraphics/DiligentEngine/issues/61)
Diffstat (limited to 'Common/NativeApp/Android')
-rw-r--r--Common/NativeApp/Android/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
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)