mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
29 lines
823 B
CMake
29 lines
823 B
CMake
if(VCPKG_TARGET_IS_LINUX)
|
|
message("Note: `mp-units` requires Clang16+ or GCC11+")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mpusz/units
|
|
REF "v${VERSION}"
|
|
SHA512 40bf0921e7411bb2adc5151bd9e09f759d3bcb4adffcb2861922c605731ed1ad1f1a56f89c4f734fab16843f36f5a67b244ce3e6e54e82b86e57c4a5d5e0fc59
|
|
PATCHES
|
|
config.patch
|
|
)
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/src"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
|
|
|
# Handle copyright/readme/package files
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
|
|
"${CURRENT_PACKAGES_DIR}/lib") # Header only
|