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 31dddd6 commit f02843e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/externals/sentencepieceproject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,11 @@ FetchContent_Declare(
set(SPM_USE_EXTERNAL_ABSL OFF CACHE BOOL "Use external absl" FORCE)
set(SPM_USE_BUILTIN_PROTOBUF OFF CACHE BOOL "Use built-in protobuf" FORCE)

if(NOT protobuf_SOURCE_DIR)
message(FATAL_ERROR "Cannot find the protobuf library in ORT")
endif()

FetchContent_MakeAvailable(spm)
if(TARGET sentencepiece-static)
target_link_libraries(sentencepiece-static PUBLIC protobuf::libprotobuf-lite)
set_target_properties(sentencepiece-static PROPERTIES
FOLDER externals/google)
endif()
set(spm_INCLUDE_DIRS
${protobuf_SOURCE_DIR}/src
${spm_SOURCE_DIR}/src/builtin_pb
${spm_SOURCE_DIR}/src )
get_target_property(spm_INCLUDE_DIRS sentencepiece::sentencepiece-static INTERFACE_INCLUDE_DIRECTORIES)

0 comments on commit f02843e

Please sign in to comment.