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 8db6a1e50d8088907e3cb0b2f849df6b63522598d8f381586e14917a7d5488f14df9d95d3ba9c2da5dde44b62bacf5a7fde75fed39149e6db0bc026961d03533 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