Add required ggml-base and backend libs to cmake pkg (#10407)
This commit is contained in:
parent
3ee6382d48
commit
2a11b6b094
3 changed files with 35 additions and 27 deletions
|
@ -239,8 +239,8 @@ function(ggml_add_backend backend)
|
|||
if (${BUILD_SHARED_LIBS})
|
||||
target_compile_definitions(${backend_target} PRIVATE GGML_BACKEND_BUILD)
|
||||
target_compile_definitions(${backend_target} PUBLIC GGML_BACKEND_SHARED)
|
||||
install(TARGETS ${backend_target} LIBRARY)
|
||||
endif()
|
||||
install(TARGETS ${backend_target} LIBRARY)
|
||||
target_link_libraries(ggml PUBLIC ${backend_target})
|
||||
string(TOUPPER "GGML_USE_${backend}" backend_use)
|
||||
target_compile_definitions(ggml PUBLIC ${backend_use})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue