vcpkg/ports/xxhash/portfile.cmake

32 lines
857 B
CMake
Raw Normal View History

2017-09-08 22:16:07 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Cyan4973/xxHash
2023-07-25 01:57:01 +08:00
REF "v${VERSION}"
SHA512 3e3eef21432fe88bc4dd9940ccad0308fdea3537b06fa5ac0e74c1bde53413dff29c8b3fc617a8a42b9ce88fcf213311d338a31b1ce73b3729342c9e68f06c78
HEAD_REF dev
)
2017-03-25 04:49:08 +08:00
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES xxhsum XXHASH_BUILD_XXHSUM
)
vcpkg_cmake_configure(
2023-07-25 01:57:01 +08:00
SOURCE_PATH "${SOURCE_PATH}/cmake_unofficial"
OPTIONS ${FEATURE_OPTIONS}
)
2017-03-25 04:49:08 +08:00
vcpkg_cmake_install()
2017-03-25 04:49:08 +08:00
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/xxHash)
2017-03-25 04:49:08 +08:00
if("xxhsum" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES xxhsum AUTO_CLEAN)
endif()
2023-07-25 01:57:01 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2021-12-07 13:10:49 +08:00
vcpkg_fixup_pkgconfig()
2023-07-25 01:57:01 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")