File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ target_include_directories(
8282 tokenizers
8383 PUBLIC
8484 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
85+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} /pytorch/tokenizers>
8586 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /third-party/sentencepiece>
8687 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /third-party/sentencepiece/src>
8788 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /third-party/re2>
@@ -190,6 +191,12 @@ install(
190191 PATTERN "*.h"
191192)
192193
194+ install (
195+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /third-party/sentencepiece/src/
196+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /pytorch/tokenizers
197+ FILES_MATCHING
198+ PATTERN "sentencepiece_processor.h"
199+ )
193200install (
194201 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /third-party/json/single_include/
195202 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
You can’t perform that action at this time.
0 commit comments