Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Feb 18, 2025
1 parent f02843e commit 6426c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ endif()

if(OCOS_ENABLE_SPM_TOKENIZER)
# SentencePiece
target_include_directories(ocos_operators PUBLIC ${spm_INCLUDE_DIRS})
#target_include_directories(ocos_operators PUBLIC ${spm_INCLUDE_DIRS})
list(APPEND OCOS_COMPILE_DEFINITIONS ENABLE_SPM_TOKENIZER)
list(APPEND ocos_libraries sentencepiece-static)
list(APPEND ocos_libraries sentencepiece::sentencepiece-static)
endif()

if(OCOS_ENABLE_BLINGFIRE)
Expand Down
1 change: 0 additions & 1 deletion cmake/externals/sentencepieceproject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ if(TARGET sentencepiece-static)
set_target_properties(sentencepiece-static PROPERTIES
FOLDER externals/google)
endif()
get_target_property(spm_INCLUDE_DIRS sentencepiece::sentencepiece-static INTERFACE_INCLUDE_DIRECTORIES)

0 comments on commit 6426c38

Please sign in to comment.