2020-09-10 03:10:56 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mpusz/units
|
2021-11-16 06:18:12 +08:00
|
|
|
REF v0.7.0
|
|
|
|
SHA512 72175f34f358d0741650ce9c8a7b28fced90cc45ddd3f1662ae1cb9ff7d31403ff742ee07ab4c96bd2d95af714d9111a888cf6acccb91e568e12d1ef663b2f64
|
2020-09-10 03:10:56 +08:00
|
|
|
PATCHES
|
|
|
|
cmake.patch
|
|
|
|
config.patch
|
|
|
|
)
|
|
|
|
|
2021-11-16 06:18:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-10 03:10:56 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:18:12 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-09-10 03:10:56 +08:00
|
|
|
|
|
|
|
# Handle copyright/readme/package files
|
2021-11-16 06:18:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2020-09-10 03:10:56 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib") # Header only
|