Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
link to sentencepiece with variable
  • Loading branch information
net-haus committed Nov 25, 2025
commit b73261fccada55103565068228d8889ae448825a
8 changes: 5 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ add_library(llama
)

target_include_directories(llama PRIVATE .)
target_include_directories(llama PUBLIC ../include "C:/NHKI/llama/llama.cpp/common" "C:/NHKI/llama/sentencepiece/src" "C:/NHKI/llama/sentencepiece")
target_include_directories(llama PUBLIC ../include ${SPIE_INCLUDE_DIR} ${SPIE_INCLUDE_DIR}/..)
#target_link_directories(${TEST_TARGET} PRIVATE "C:/NHKI/llama/sentencepiece/build/src/Debug")

target_compile_features (llama PRIVATE cxx_std_17) # don't bump

target_link_libraries(llama PUBLIC ggml "C:/NHKI/llama/sentencepiece/build/src/Debug/sentencepiece.lib")
message(SPIE_LIBRARY="${SPIE_LIBRARY}")
message(SPIE_LIBRARY="${SPIE_INCLUDE_DIR}")
#target_link_libraries(llama PUBLIC ggml "C:/NHKI/llama/sentencepiece/build/src/Release/sentencepiece.lib")
target_link_libraries(llama PUBLIC ggml ${SPIE_LIBRARY})

if (BUILD_SHARED_LIBS)
set_target_properties(llama PROPERTIES POSITION_INDEPENDENT_CODE ON)
Expand Down