We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a99c9 commit b007644Copy full SHA for b007644
cmake/tokenizers-config.cmake.in
@@ -10,7 +10,11 @@ include(CMakeFindDependencyMacro)
10
include(GNUInstallDirs)
11
# Directly include sentencepiece library
12
set_and_check(TOKENIZERS_LIBDIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
13
-set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.a")
+if(WIN32)
14
+ set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.lib")
15
+else()
16
+ set(SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR}/libsentencepiece.a")
17
+endif()
18
if(NOT EXISTS "${SENTENCEPIECE_LIBRARY}")
19
message(
20
FATAL_ERROR
0 commit comments