File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -239,9 +239,8 @@ set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")
239239install (TARGETS ggml PUBLIC_HEADER )
240240
241241if (BUILD_SHARED_LIBS )
242- install (TARGETS ggml LIBRARY)
243- get_target_property (GGML_LINK_LIBRARIES ggml LINK_LIBRARIES )
244- install (TARGETS ${GGML_LINK_LIBRARIES} LIBRARY)
242+ install (TARGETS ggml LIBRARY)
243+ install (TARGETS ggml-base LIBRARY)
245244endif ()
246245
247246# FIXME: this should be done in the backend cmake files
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ function(ggml_add_backend backend)
237237 if (${BUILD_SHARED_LIBS} )
238238 target_compile_definitions (${backend_target} PRIVATE GGML_BACKEND_BUILD)
239239 target_compile_definitions (${backend_target} PUBLIC GGML_BACKEND_SHARED)
240+ install (TARGETS ${backend_target} LIBRARY)
240241 endif ()
241242 target_link_libraries (ggml PUBLIC ${backend_target} )
242243 string (TOUPPER "GGML_USE_${backend} " backend_use)
You can’t perform that action at this time.
0 commit comments