Fix llama models on linux and windows.

This commit is contained in:
Adam Treat 2023-06-05 14:30:56 -04:00
parent d8e821134e
commit c5de9634c9
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ foreach(BUILD_VARIANT IN LISTS BUILD_VARIANTS)
message(STATUS "Configuring model implementation target ${TARGET_NAME}")
# Link to ggml/llama
target_link_libraries(${TARGET_NAME}
PUBLIC ${BASE_LIB}-${BUILD_VARIANT})
PRIVATE ${BASE_LIB}-${BUILD_VARIANT})
# Let it know about its build variant
target_compile_definitions(${TARGET_NAME}
PRIVATE GGML_BUILD_VARIANT="${BUILD_VARIANT}")

View File

@ -338,7 +338,7 @@ function(include_ggml DIRECTORY SUFFIX WITH_LLAMA)
set(LLAMA_UTIL_SOURCE_FILE llama_util.h)
endif()
add_library(llama${SUFFIX}
add_library(llama${SUFFIX} STATIC
${DIRECTORY}/llama.cpp
${DIRECTORY}/llama.h
${DIRECTORY}/${LLAMA_UTIL_SOURCE_FILE})