ggml : install dynamic backends (ggml/1240)
* ggml : install dynamic backends Make sure dynamic backends are installed in $CMAKE_INSTALL_BINDIR
This commit is contained in:
parent
fedf034a98
commit
6eba72b71c
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ function(ggml_add_backend_library backend)
|
|||
set_target_properties(${backend} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||
target_compile_definitions(${backend} PRIVATE GGML_BACKEND_DL)
|
||||
add_dependencies(ggml ${backend})
|
||||
install(TARGETS ${backend} LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
else()
|
||||
add_library(${backend} ${ARGN})
|
||||
target_link_libraries(ggml PUBLIC ${backend})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue