Skip to content

Commit 4481a18

Browse files
authored
Switch to shared ONNX Runtime library (.so) in build config. (#2)
Updated the build configuration to use the shared ONNX Runtime library (`.so`) instead of the static library (`.a`). This change improves modularity and reduces binary size, enabling dynamic loading of the library at runtime.
1 parent 73668ab commit 4481a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if (UNIX AND NOT APPLE)
124124
endif ()
125125

126126
include_directories(${ONNXRUNTIME_DIR}/include)
127-
set(ONNXRUNTIME_LIB ${ONNXRUNTIME_DIR}/lib/libonnxruntime.a)
127+
set(ONNXRUNTIME_LIB ${ONNXRUNTIME_DIR}/lib/libonnxruntime.so)
128128

129129
target_link_libraries(${EXTENSION_NAME}
130130
${ONNXRUNTIME_LIB}

0 commit comments

Comments
 (0)