Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,18 @@ if(SUPPORT_REGEX_LOOKAHEAD)
pcre2-8-static
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third-party/pcre2/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/third-party/pcre2>
)
add_library(
regex_lookahead STATIC
${CMAKE_CURRENT_SOURCE_DIR}/src/pcre2_regex.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/regex_lookahead.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/std_regex.cpp
)
target_link_libraries(regex_lookahead PUBLIC pcre2-8)
target_link_libraries(regex_lookahead PUBLIC pcre2-8-static)
target_include_directories(
regex_lookahead
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third-party/pcre2/src>
)
target_link_options_shared_lib(regex_lookahead)
target_link_libraries(tokenizers PUBLIC regex_lookahead)
Expand Down
2 changes: 1 addition & 1 deletion targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def define_common_targets():
"@EXECUTORCH_CLIENTS",
"//pytorch/tokenizers/...",
],
external_deps = [
exported_external_deps = [
"sentencepiece",
"abseil-cpp",
],
Expand Down