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 14a80d3 commit ea8691cCopy full SHA for ea8691c
CMakeLists.txt
@@ -38,7 +38,20 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
38
39
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/abseil-cpp)
40
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/re2)
41
-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/sentencepiece)
+
42
+if(NOT DEFINED SPM_BUILD_TEST)
43
+ set(SPM_BUILD_TEST OFF CACHE BOOL "")
44
+endif()
45
46
+if(NOT DEFINED SPM_ENABLE_SHARED)
47
+ set(SPM_ENABLE_SHARED OFF CACHE BOOL "")
48
49
50
+add_subdirectory(
51
+ ${CMAKE_CURRENT_SOURCE_DIR}/third-party/sentencepiece
52
+ ${CMAKE_CURRENT_BINARY_DIR}/sentencepiece-build
53
+ EXCLUDE_FROM_ALL
54
+)
55
56
set(CMAKE_POSITION_INDEPENDENT_CODE ${_pic_flag})
57
0 commit comments