From 9f8f0c7bfa1a8f393cd4da3f49c1163d7daa774f Mon Sep 17 00:00:00 2001 From: Nic Holthaus Date: Mon, 17 Aug 2026 18:59:58 -0400 Subject: [PATCH] [units] Update to 3.6.0 (#53465) --- ports/units/portfile.cmake | 7 +++++-- ports/units/vcpkg.json | 4 ++-- versions/baseline.json | 2 +- versions/u-/units.json | 5 +++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ports/units/portfile.cmake b/ports/units/portfile.cmake index 1ec5af5fe7..bfc21d47b9 100644 --- a/ports/units/portfile.cmake +++ b/ports/units/portfile.cmake @@ -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") diff --git a/ports/units/vcpkg.json b/ports/units/vcpkg.json index bc620a1898..640ff897c9 100644 --- a/ports/units/vcpkg.json +++ b/ports/units/vcpkg.json @@ -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": [ diff --git a/versions/baseline.json b/versions/baseline.json index 44d12dcf04..eac36c2ca0 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -10513,7 +10513,7 @@ "port-version": 0 }, "units": { - "baseline": "3.3.0", + "baseline": "3.6.0", "port-version": 0 }, "unittest-cpp": { diff --git a/versions/u-/units.json b/versions/u-/units.json index 5312664bae..f21b5c5567 100644 --- a/versions/u-/units.json +++ b/versions/u-/units.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "4528f652f253c6f7eb324620272ba9a9736318ea", + "version": "3.6.0", + "port-version": 0 + }, { "git-tree": "1dad7eb82a4df280bead2a440e02ac5f9e36025c", "version": "3.3.0",