Build lib versions of ggml separately
This commit is contained in:
parent
741c19a756
commit
a482750590
1 changed files with 3 additions and 1 deletions
|
@ -410,7 +410,7 @@ endif()
|
|||
# Build libraries
|
||||
#
|
||||
|
||||
add_library(ggml STATIC
|
||||
add_library(ggml OBJECT
|
||||
ggml.c
|
||||
ggml.h
|
||||
${GGML_SOURCES_CUDA}
|
||||
|
@ -423,8 +423,10 @@ target_include_directories(ggml PUBLIC . ${LLAMA_EXTRA_INCLUDES})
|
|||
target_compile_features(ggml PUBLIC c_std_11) # don't bump
|
||||
target_link_libraries(ggml PUBLIC Threads::Threads ${LLAMA_EXTRA_LIBS})
|
||||
|
||||
add_library(ggml_static STATIC $<TARGET_OBJECTS:ggml>)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
add_library(ggml_shared SHARED $<TARGET_OBJECTS:ggml>)
|
||||
endif()
|
||||
|
||||
add_library(llama
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue