Skip to content

Commit 5f7aeea

Browse files
committed
add Android and IOS to the exclusion
1 parent 4e628e3 commit 5f7aeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ set(ORT_PACKAGE_LIB_DIR ${JAVA_NATIVE_LIB_DIR}/ai/onnxruntime/native/${JAVA_OS_A
107107
file(MAKE_DIRECTORY ${ORT_PACKAGE_LIB_DIR})
108108

109109
# Add the native genai library to the native-lib dir
110-
if(WIN32)
110+
if(WIN32 OR ANDROID OR IOS)
111111
add_custom_command(TARGET onnxruntime-genai-jni POST_BUILD
112112
COMMAND ${CMAKE_COMMAND} -E copy_if_different
113113
$<TARGET_FILE_NAME:onnxruntime-genai> ${JAVA_PACKAGE_LIB_DIR})

0 commit comments

Comments
 (0)