Skip to content

Commit

Permalink
Merge pull request #870 from ryandesign/ryandesign-protobuf-lite
Browse files Browse the repository at this point in the history
Fix overlinking with protobuf
  • Loading branch information
taku910 committed May 24, 2023
2 parents f2219b5 + 4183597 commit cb22883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ endif()
if (SPM_USE_BUILTIN_PROTOBUF)
set(libprotobuf_lite "")
else()
set(libprotobuf_lite "-lprotobuf-lite")
set(libprotobuf_lite "protobuf-lite")
endif()

if (MSVC)
Expand Down
5 changes: 3 additions & 2 deletions sentencepiece.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ includedir=@includedir_for_pc_file@
Name: @PROJECT_NAME@
Description: Unsupervised text tokenizer and detokenizer for Neural Network-based text generation.
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lsentencepiece -lsentencepiece_train @libprotobuf_lite@ @pkgconfiglibs@
Cflags: -I${includedir} @pkgconfigcflags@
Libs: -L${libdir} -lsentencepiece -lsentencepiece_train
Cflags: -I${includedir}
Requires.private: @libprotobuf_lite@

0 comments on commit cb22883

Please sign in to comment.