mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:48:59 +08:00
dc558404ec
* [parallel-hashmap] Bump version to 1.3.8 * run x-add-version
27 lines
906 B
CMake
27 lines
906 B
CMake
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO greg7mdp/parallel-hashmap
|
|
REF v1.3.8
|
|
SHA512 499f132aa1513942762ae5214e9a37915529d60142439d32276d9e68a446c93ecea66caa32ac00bea683e2c932101cd999c8839a89211e91032f777f236181f7
|
|
HEAD_REF master
|
|
)
|
|
|
|
# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DPHMAP_BUILD_TESTS=OFF
|
|
-DPHMAP_BUILD_EXAMPLES=OFF
|
|
)
|
|
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)
|