mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 02:08:59 +08:00
72f36d7d0c
* [sentencepiece] Fix port * update version * add supports * update version * remove features * update version --------- Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
32 lines
869 B
CMake
32 lines
869 B
CMake
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_STATIC_CRT)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/sentencepiece
|
|
REF "v${VERSION}"
|
|
SHA512 31dc4dc3f2ff4a7effc1ed2d6ad219bcd5d28c0bac89fdeae0336f23e93f954c597313788529e692a0d694d5fa7c3c285a485dfb84a96921efc4b49bcd465358
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DSPM_ENABLE_SHARED=OFF
|
|
-DSPM_USE_BUILTIN_PROTOBUF=ON
|
|
-DSPM_USE_EXTERNAL_ABSL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES spm_decode spm_encode spm_export_vocab spm_normalize spm_train AUTO_CLEAN)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|