diff --git a/CMakeLists.txt b/CMakeLists.txt index 536068c..08e2e79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,7 @@ if(SUPPORT_REGEX_LOOKAHEAD) pcre2-8-static PROPERTIES INTERFACE_INCLUDE_DIRECTORIES - $ + $ ) add_library( regex_lookahead STATIC @@ -100,11 +100,10 @@ if(SUPPORT_REGEX_LOOKAHEAD) ${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 $ - $ ) target_link_options_shared_lib(regex_lookahead) target_link_libraries(tokenizers PUBLIC regex_lookahead) diff --git a/targets.bzl b/targets.bzl index 2a2bf5c..2d55359 100644 --- a/targets.bzl +++ b/targets.bzl @@ -101,7 +101,7 @@ def define_common_targets(): "@EXECUTORCH_CLIENTS", "//pytorch/tokenizers/...", ], - external_deps = [ + exported_external_deps = [ "sentencepiece", "abseil-cpp", ],