File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,14 @@ target_link_libraries(tokenizers PUBLIC sentencepiece-static)
39
39
# Build test
40
40
if (TOKENIZERS_BUILD_TEST )
41
41
add_subdirectory (third-party/googletest )
42
- find_package (GTest REQUIRED )
42
+ find_package (GTest CONFIG REQUIRED )
43
+ set (GTEST_INCLUDE_PATH
44
+ third-party/googletest/googletest/include )
43
45
set (ENV{RESOURCES_PATH} ${CMAKE_CURRENT_SOURCE_DIR} /test/resources )
44
46
add_executable (sentencepiece_test test /test_sentencepiece.cpp )
45
47
target_include_directories (
46
48
sentencepiece_test PUBLIC third-party/sentencepiece/src
47
- third-party/sentencepiece include )
49
+ third-party/sentencepiece include GTEST_INCLUDE_PATH )
48
50
target_link_libraries (sentencepiece_test PUBLIC tokenizers GTest::GTest
49
51
GTest::Main )
50
52
endif ()
You can’t perform that action at this time.
0 commit comments