add missing libraries to ggml cmake install

This commit is contained in:
slaren 2024-11-13 20:33:38 +01:00
parent e541f7ffbe
commit e0b321b89b

View File

@ -240,6 +240,8 @@ install(TARGETS ggml PUBLIC_HEADER)
if (BUILD_SHARED_LIBS)
install(TARGETS ggml LIBRARY)
get_target_property(GGML_LINK_LIBRARIES ggml LINK_LIBRARIES)
install(TARGETS ${GGML_LINK_LIBRARIES} LIBRARY)
endif()
# FIXME: this should be done in the backend cmake files