Skip to content

Commit c8bff72

Browse files
authored
Fix build for tokenizer tool script (#36)
1 parent 0d6a620 commit c8bff72

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ endif()
8686

8787
# Build tools
8888
if(TOKENIZERS_BUILD_TOOLS)
89-
add_subdirectory(tools/tokenize_tool)
89+
add_subdirectory(examples/tokenize_tool)
9090
endif()

examples/tokenize_tool/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ file(GLOB source_files ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
88
get_filename_component(tool_name ${CMAKE_CURRENT_SOURCE_DIR} NAME)
99
add_executable(${tool_name} ${source_files})
1010
target_link_libraries(${tool_name} PRIVATE tokenizers)
11+
target_include_directories(${tool_name} PRIVATE
12+
${CMAKE_SOURCE_DIR}/include/pytorch/tokenizers
13+
)

0 commit comments

Comments
 (0)