We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e628e3 commit 5f7aeeaCopy full SHA for 5f7aeea
src/java/CMakeLists.txt
@@ -107,7 +107,7 @@ set(ORT_PACKAGE_LIB_DIR ${JAVA_NATIVE_LIB_DIR}/ai/onnxruntime/native/${JAVA_OS_A
107
file(MAKE_DIRECTORY ${ORT_PACKAGE_LIB_DIR})
108
109
# Add the native genai library to the native-lib dir
110
-if(WIN32)
+if(WIN32 OR ANDROID OR IOS)
111
add_custom_command(TARGET onnxruntime-genai-jni POST_BUILD
112
COMMAND ${CMAKE_COMMAND} -E copy_if_different
113
$<TARGET_FILE_NAME:onnxruntime-genai> ${JAVA_PACKAGE_LIB_DIR})
0 commit comments