add parallel-hashmap package

This commit is contained in:
greg 2019-04-01 08:52:01 -04:00
parent 6f0923ae93
commit 7892184134
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Source: parallel-hashmap
Version: 1.0.0
Description: A header-only, very fast and memory-friendly hash map family.

View File

@ -0,0 +1,25 @@
#header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO greg7mdp/parallel-hashmap
REF 1.0.0
SHA512 8e0e6da3f809b177fbeaa30916bd8fed8d4b896e8d8526d10e74169078050e91dc52c48b4ca29847fac669be5fcfb1216a706fe242a2330999273e10975d9439
HEAD_REF master
)
# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
# Delete redundant directories
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/LICENSE ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/copyright)