File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ configure_package_config_file(
210
210
${CMAKE_CURRENT_SOURCE_DIR} /cmake/tokenizers-config.cmake.in
211
211
${CMAKE_CURRENT_BINARY_DIR} /tokenizers-config.cmake
212
212
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/tokenizers
213
- PATH_VARS CMAKE_INSTALL_INCLUDEDIR
213
+ PATH_VARS CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR
214
214
)
215
215
216
216
install (FILES ${CMAKE_CURRENT_BINARY_DIR} /tokenizers-config.cmake
Original file line number Diff line number Diff line change 8
8
9
9
include (CMakeFindDependencyMacro )
10
10
include (GNUInstallDirs )
11
- # Find dependencies
12
- find_dependency (re2 REQUIRED )
13
- find_dependency (absl REQUIRED )
14
11
# Directly include sentencepiece library
15
- set (SENTENCEPIECE_LIBRARY "${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_LIBDIR} /libsentencepiece.a" )
12
+ set_and_check (TOKENIZERS_LIBDIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@" )
13
+ set (SENTENCEPIECE_LIBRARY "${TOKENIZERS_LIBDIR} /libsentencepiece.a" )
16
14
if (NOT EXISTS "${SENTENCEPIECE_LIBRARY} " )
17
15
message (
18
16
FATAL_ERROR
19
17
"Could not find sentencepiece library at ${SENTENCEPIECE_LIBRARY} "
20
18
)
21
19
endif ()
22
20
21
+ find_dependency (re2 REQUIRED )
22
+ find_dependency (absl REQUIRED )
23
+
23
24
# Include the exported targets file
24
25
include ("${CMAKE_CURRENT_LIST_DIR} /tokenizers-targets.cmake" )
25
26
You can’t perform that action at this time.
0 commit comments