Skip to content

Commit 5720426

Browse files
authored
whisper : install shared libs when using GGML_BACKEND_DL (#3195)
1 parent b9d27b1 commit 5720426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ function(ggml_add_backend_library backend)
224224
set_target_properties(${backend} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
225225
target_compile_definitions(${backend} PRIVATE GGML_BACKEND_DL)
226226
add_dependencies(ggml ${backend})
227-
else()
227+
install(TARGETS ${backend} LIBRARY DESTINATION bin)
228+
else()
228229
add_library(${backend} ${ARGN})
229230
target_link_libraries(ggml PUBLIC ${backend})
230231
install(TARGETS ${backend} LIBRARY)

0 commit comments

Comments
 (0)