Skip to content

Instantly share code, notes, and snippets.

@rkandas
Created November 26, 2021 14:16
Show Gist options
  • Save rkandas/ab9f5b0db9cfd9b5bfe5efc2d1e9f05c to your computer and use it in GitHub Desktop.
Save rkandas/ab9f5b0db9cfd9b5bfe5efc2d1e9f05c to your computer and use it in GitHub Desktop.
Assimp build patch for Android builds
diff --git a/port/AndroidJNI/CMakeLists.txt b/port/AndroidJNI/CMakeLists.txt
index 8c821c72a..6fb7489fe 100644
--- a/port/AndroidJNI/CMakeLists.txt
+++ b/port/AndroidJNI/CMakeLists.txt
@@ -13,4 +13,7 @@ add_library( # Defines the name of the library.
BundledAssetIOSystem.cpp
)
TARGET_LINK_LIBRARIES(android_jniiosystem android log)
-INSTALL(TARGETS android_jniiosystem EXPORT "${TARGETS_EXPORT_NAME}")
+INSTALL(TARGETS android_jniiosystem EXPORT "${TARGETS_EXPORT_NAME}"
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment