[mp-units] update to 2.2.1 (#40951)

This commit is contained in:
Jia Yue Hua 2024-09-17 03:22:21 +08:00 committed by GitHub
parent 50c08d3885
commit a82a798206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 33 deletions

View File

@ -6,20 +6,14 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mpusz/units
REF "v${VERSION}"
SHA512 7968b215c6b27a7a988ce41235139a57be6bb849db6d6ea0df46b0a40d279d4be4c53646c5a4bf695fb9e70ff4967d3fd443fec8ee40c4ab7f0c90d8695632c3
SHA512 40bf0921e7411bb2adc5151bd9e09f759d3bcb4adffcb2861922c605731ed1ad1f1a56f89c4f734fab16843f36f5a67b244ce3e6e54e82b86e57c4a5d5e0fc59
PATCHES
config.patch
)
set(USE_STD_FORMAT TRUE)
if ("use-libfmt" IN_LIST FEATURES)
set(USE_STD_FORMAT FALSE)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/src"
OPTIONS
-DMP_UNITS_API_STD_FORMAT=${USE_STD_FORMAT}
)
vcpkg_cmake_install()

View File

@ -1,10 +1,11 @@
{
"name": "mp-units",
"version": "2.2.0",
"version": "2.2.1",
"description": "mp-units - A Units Library for C++",
"homepage": "https://github.com/mpusz/units",
"license": "MIT",
"dependencies": [
"fmt",
"gsl-lite",
{
"name": "vcpkg-cmake",
@ -14,28 +15,5 @@
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"default-features"
],
"features": {
"default-features": {
"description": "Platform specific default features",
"dependencies": [
{
"name": "mp-units",
"features": [
"use-libfmt"
],
"platform": "osx"
}
]
},
"use-libfmt": {
"description": "Use libfmt instead of std::format",
"dependencies": [
"fmt"
]
}
}
]
}

View File

@ -5997,7 +5997,7 @@
"port-version": 1
},
"mp-units": {
"baseline": "2.2.0",
"baseline": "2.2.1",
"port-version": 0
},
"mp3lame": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bdc98457b93451bd4e80152a65ce8ec971aaddf0",
"version": "2.2.1",
"port-version": 0
},
{
"git-tree": "32d38ebf2cf91ab717ba623e298ec889635ac4a6",
"version": "2.2.0",