Skip to content

Commit b007644

Browse files
authored
[Windows] Update tokenizers-config for Windows (#129)
1 parent 86a99c9 commit b007644

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/tokenizers-config.cmake.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ include(CMakeFindDependencyMacro)
1010
include(GNUInstallDirs)
1111
# Directly include sentencepiece library
1212
set_and_check(TOKENIZERS_LIBDIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
13-
set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.a")
13+
if(WIN32)
14+
set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.lib")
15+
else()
16+
set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.a")
17+
endif()
1418
if(NOT EXISTS "${SENTENCEPIECE_LIBRARY}")
1519
message(
1620
FATAL_ERROR

0 commit comments

Comments
 (0)