2019-04-02 00:55:14 +08:00
|
|
|
#header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO greg7mdp/parallel-hashmap
|
2022-09-28 06:52:04 +08:00
|
|
|
REF 1.36
|
|
|
|
SHA512 c5f7eea4cda698b8a2cc405d061fa1f4746354d5b0d3edd4db2e571fed757ffffe21c5ad4ec45feaa72db0dd092c7d220505f378340caeb176685900a57bc24c
|
2019-04-02 00:55:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
|
2022-03-05 03:35:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-09-28 06:52:04 +08:00
|
|
|
OPTIONS
|
|
|
|
-DPHMAP_BUILD_TESTS=OFF
|
|
|
|
-DPHMAP_BUILD_EXAMPLES=OFF
|
2019-04-02 00:55:14 +08:00
|
|
|
)
|
2022-03-05 03:35:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-04-02 00:55:14 +08:00
|
|
|
|
|
|
|
# Delete redundant directories
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
|
|
|
|
|
2019-06-18 01:35:44 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/phmap.natvis DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
|
|
|
|
2019-04-02 00:55:14 +08:00
|
|
|
# Put the licence file where vcpkg expects it
|
2020-05-20 06:12:29 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|