mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 06:46:37 +00:00
Add required ggml-base and backend libs to cmake pkg (llama/10407)
This commit is contained in:
parent
5f6d6919b4
commit
339b8e559c
@ -234,12 +234,8 @@ set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")
|
|||||||
#if (GGML_METAL)
|
#if (GGML_METAL)
|
||||||
# set_target_properties(ggml PROPERTIES RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/src/ggml-metal.metal")
|
# set_target_properties(ggml PROPERTIES RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/src/ggml-metal.metal")
|
||||||
#endif()
|
#endif()
|
||||||
install(TARGETS ggml PUBLIC_HEADER)
|
install(TARGETS ggml LIBRARY PUBLIC_HEADER)
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
|
||||||
install(TARGETS ggml LIBRARY)
|
|
||||||
install(TARGETS ggml-base LIBRARY)
|
install(TARGETS ggml-base LIBRARY)
|
||||||
endif()
|
|
||||||
|
|
||||||
# FIXME: this should be done in the backend cmake files
|
# FIXME: this should be done in the backend cmake files
|
||||||
if (GGML_METAL)
|
if (GGML_METAL)
|
||||||
|
@ -239,8 +239,8 @@ function(ggml_add_backend backend)
|
|||||||
if (${BUILD_SHARED_LIBS})
|
if (${BUILD_SHARED_LIBS})
|
||||||
target_compile_definitions(${backend_target} PRIVATE GGML_BACKEND_BUILD)
|
target_compile_definitions(${backend_target} PRIVATE GGML_BACKEND_BUILD)
|
||||||
target_compile_definitions(${backend_target} PUBLIC GGML_BACKEND_SHARED)
|
target_compile_definitions(${backend_target} PUBLIC GGML_BACKEND_SHARED)
|
||||||
install(TARGETS ${backend_target} LIBRARY)
|
|
||||||
endif()
|
endif()
|
||||||
|
install(TARGETS ${backend_target} LIBRARY)
|
||||||
target_link_libraries(ggml PUBLIC ${backend_target})
|
target_link_libraries(ggml PUBLIC ${backend_target})
|
||||||
string(TOUPPER "GGML_USE_${backend}" backend_use)
|
string(TOUPPER "GGML_USE_${backend}" backend_use)
|
||||||
target_compile_definitions(ggml PUBLIC ${backend_use})
|
target_compile_definitions(ggml PUBLIC ${backend_use})
|
||||||
|
Loading…
Reference in New Issue
Block a user