Skip to content

Commit e503ad1

Browse files
committed
fix sanitizers build
1 parent 796f05b commit e503ad1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,8 @@ set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")
239239
install(TARGETS ggml PUBLIC_HEADER)
240240

241241
if (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)
245244
endif()
246245

247246
# FIXME: this should be done in the backend cmake files

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)