]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | #header-only library |
2 | ||
3 | vcpkg_from_github( | |
4 | OUT_SOURCE_PATH SOURCE_PATH | |
5 | REPO greg7mdp/parallel-hashmap | |
6 | REF 1.32 | |
7 | SHA512 838358bf5899876a53accea8a10e051d35189b4105b6bc01dfe4f3ff01fdbe68986efb36341cc3082bc58419be33735e76350a2fd9501c2cace153f9d4321f24 | |
8 | HEAD_REF master | |
9 | ) | |
10 | ||
11 | # Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests | |
12 | vcpkg_configure_cmake( | |
13 | SOURCE_PATH ${SOURCE_PATH} | |
14 | PREFER_NINJA | |
15 | ) | |
16 | vcpkg_install_cmake() | |
17 | ||
18 | # Delete redundant directories | |
19 | file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc) | |
20 | ||
21 | file(COPY ${SOURCE_PATH}/phmap.natvis DESTINATION ${CURRENT_PACKAGES_DIR}/include) | |
22 | ||
23 | # Put the licence file where vcpkg expects it | |
24 | file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |