File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ if(SUPPORT_REGEX_LOOKAHEAD OR TOKENIZERS_BUILD_TEST)
85
85
target_include_directories (
86
86
regex_lookahead PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /include
87
87
${CMAKE_CURRENT_SOURCE_DIR} /third-party/pcre2/src )
88
- target_link_options_shared_lib (regex_lookahead )
88
+ target_link_options_shared_lib (regex_lookahead )
89
+ target_link_libraries (tokenizers PUBLIC regex_lookahead )
89
90
endif ()
90
91
91
92
# Build test
@@ -117,8 +118,7 @@ if(TOKENIZERS_BUILD_TEST)
117
118
${CMAKE_CURRENT_SOURCE_DIR} /third-party/sentencepiece
118
119
${CMAKE_CURRENT_SOURCE_DIR} /third-party/re2
119
120
${CMAKE_CURRENT_SOURCE_DIR} /third-party/json/single_include )
120
- target_link_libraries (${test_name} gtest_main GTest::gmock tokenizers
121
- regex_lookahead )
121
+ target_link_libraries (${test_name} gtest_main GTest::gmock tokenizers )
122
122
add_test (${test_name} "${test_name} " )
123
123
set_tests_properties (${test_name} PROPERTIES ENVIRONMENT ${test_env} )
124
124
endforeach ()
You can’t perform that action at this time.
0 commit comments