Skip to content

Commit

Permalink
Merge pull request #947 from chenqy4933/master
Browse files Browse the repository at this point in the history
fix(cmake): fix android build error
  • Loading branch information
taku910 committed Dec 23, 2023
2 parents 6b32c01 + fc1584e commit a5262b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ endif()
if (SPM_ENABLE_SHARED)
add_library(sentencepiece SHARED ${SPM_SRCS})
add_library(sentencepiece_train SHARED ${SPM_TRAIN_SRCS})
if (ANDROID)
target_link_libraries(sentencepiece log)
target_link_libraries(sentencepiece_train log)
endif()
endif()

add_library(sentencepiece-static STATIC ${SPM_SRCS})
Expand Down

0 comments on commit a5262b5

Please sign in to comment.