vcpkg/ports/parallel-hashmap/portfile.cmake
Gregory Popovitch 54ab0528f8
[parallel-hashmap] update version to 1.34 (#23365)
* [parallel-hashmap] update version to 1.34

* run `vcpkg x-add-version --all` and change `version-string` to `version`

* make suggested changes

* add changes suggested by @JonLui1993

* ran `vcpkg x-add-version --all ` as suggested

* update version

* update parallel-hashmap.json

Co-authored-by: Jonliu1993 <13720414433@163.com>
2022-03-04 11:35:45 -08:00

24 lines
825 B
CMake

#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO greg7mdp/parallel-hashmap
REF 1.34
SHA512 3747422e80406aa77b009adee3c16325640dd1044560882fb881dac5ef4109f7d165d26ed7e64002c9285275f95962725ce20c918da12c0c113999c8ca3c7429
HEAD_REF master
)
# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
# Delete redundant directories
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
file(COPY ${SOURCE_PATH}/phmap.natvis DESTINATION ${CURRENT_PACKAGES_DIR}/include)
# Put the licence file where vcpkg expects it
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)