Skip to content

Commit 6eba72b

Browse files
rgerganovggerganov
authored andcommitted
ggml : install dynamic backends (ggml/1240)
* ggml : install dynamic backends Make sure dynamic backends are installed in $CMAKE_INSTALL_BINDIR
1 parent fedf034 commit 6eba72b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ function(ggml_add_backend_library backend)
227227
set_target_properties(${backend} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
228228
target_compile_definitions(${backend} PRIVATE GGML_BACKEND_DL)
229229
add_dependencies(ggml ${backend})
230+
install(TARGETS ${backend} LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR})
230231
else()
231232
add_library(${backend} ${ARGN})
232233
target_link_libraries(ggml PUBLIC ${backend})

0 commit comments

Comments
 (0)