[units] Update to 3.6.0 (#53465)

This commit is contained in:
Nic Holthaus 2026-08-17 18:59:58 -04:00 committed by GitHub
parent 76bd0f6cb0
commit 9f8f0c7bfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 5 deletions

View File

@ -2,19 +2,22 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nholthaus/units
REF v${VERSION}
SHA512 9cedc52e0405140b9a8014195f59f4deb2edd155fe78df76005eb721974c2a640975d9b959777be48f41c24f6a0a7047536649958da847e2aa8b0c3b9a6d139a
SHA512 605cc58cef72084a89390c62cc29897c7eecb3c5d302da85a4123a4db2fabcd69baf6424728b1422f0b35d216e4e94160eb65847bf8e369ddb6a487e84d4daa7
)
set(VCPKG_BUILD_TYPE "release")
# units is header-only. Turning tests off also turns the examples off (they follow UNITS_BUILD_TESTS), so the
# configure step compiles nothing and the install stages only the header tree and the CMake package files.
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DUNITS_BUILD_TESTS=OFF
-DUNITS_BUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/units)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # from CMake config
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # header-only: no libraries, only the CMake config moved above
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,7 +1,7 @@
{
"name": "units",
"version": "3.3.0",
"description": "A compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.",
"version": "3.6.0",
"description": "A compile-time, header-only, dimensional-analysis and unit-conversion library for C++23 with no dependencies.",
"homepage": "https://github.com/nholthaus/units",
"license": "MIT",
"dependencies": [

View File

@ -10513,7 +10513,7 @@
"port-version": 0
},
"units": {
"baseline": "3.3.0",
"baseline": "3.6.0",
"port-version": 0
},
"unittest-cpp": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4528f652f253c6f7eb324620272ba9a9736318ea",
"version": "3.6.0",
"port-version": 0
},
{
"git-tree": "1dad7eb82a4df280bead2a440e02ac5f9e36025c",
"version": "3.3.0",