From 78e168b9ed47cd34d9ac60f61b6bc870f141d5dd Mon Sep 17 00:00:00 2001 From: Weihang Ding <798047000@qq.com> Date: Wed, 22 Jul 2026 07:15:21 +0800 Subject: [PATCH] [cleishm-thermo-cpp] Update to 2.1.0 (#52946) --- ports/cleishm-thermo-cpp/001-fix-flags.patch | 16 ++++++++++++++++ ports/cleishm-thermo-cpp/portfile.cmake | 5 ++++- ports/cleishm-thermo-cpp/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/c-/cleishm-thermo-cpp.json | 5 +++++ 5 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 ports/cleishm-thermo-cpp/001-fix-flags.patch diff --git a/ports/cleishm-thermo-cpp/001-fix-flags.patch b/ports/cleishm-thermo-cpp/001-fix-flags.patch new file mode 100644 index 0000000000..4f3d345b8e --- /dev/null +++ b/ports/cleishm-thermo-cpp/001-fix-flags.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4c7c2d2..e1b4ba6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,6 +21,11 @@ set(CMAKE_CXX_EXTENSIONS OFF) + add_library(thermo INTERFACE) + add_library(thermo::thermo ALIAS thermo) + ++target_compile_options(thermo INTERFACE ++ "$<$:/Zc:__cplusplus>" ++ "$<$:/utf-8>" ++) ++ + target_include_directories(thermo INTERFACE + $ + $ diff --git a/ports/cleishm-thermo-cpp/portfile.cmake b/ports/cleishm-thermo-cpp/portfile.cmake index 3c3e01dfaa..e307208e7f 100644 --- a/ports/cleishm-thermo-cpp/portfile.cmake +++ b/ports/cleishm-thermo-cpp/portfile.cmake @@ -2,14 +2,17 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO cleishm/thermo-cpp REF "v${VERSION}" - SHA512 528456aca2c2bfccab8dbf459c3a66532c67e3ca7fbdff39b014ac7777329b8e570862bc4960ff2b647c518d271380602c7b793e9fff72a017eed395559caab2 + SHA512 45b8801f95990b7290ac8230fba81965364e3166fa5d71585c680f04db816469dbeca41683dc1d5fae7e6214a090d36bdb4e6f32ded23bf95aeffd74f74b8194 HEAD_REF main + PATCHES + 001-fix-flags.patch ) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DTHERMO_BUILD_TESTS=OFF + -DTHERMO_BUILD_DOCS=OFF ) vcpkg_cmake_install() diff --git a/ports/cleishm-thermo-cpp/vcpkg.json b/ports/cleishm-thermo-cpp/vcpkg.json index 0a2f0ce654..8cbeb319b2 100644 --- a/ports/cleishm-thermo-cpp/vcpkg.json +++ b/ports/cleishm-thermo-cpp/vcpkg.json @@ -1,6 +1,6 @@ { "name": "cleishm-thermo-cpp", - "version": "2.0.0", + "version": "2.1.0", "description": "Type-safe temperature handling library modeled after std::chrono", "homepage": "https://github.com/cleishm/thermo-cpp", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index da1a5639ab..7ca443f201 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1813,7 +1813,7 @@ "port-version": 0 }, "cleishm-thermo-cpp": { - "baseline": "2.0.0", + "baseline": "2.1.0", "port-version": 0 }, "clfft": { diff --git a/versions/c-/cleishm-thermo-cpp.json b/versions/c-/cleishm-thermo-cpp.json index c7a2f15c27..d85970e6f4 100644 --- a/versions/c-/cleishm-thermo-cpp.json +++ b/versions/c-/cleishm-thermo-cpp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "b0b218a3b748228bbbe0804df6d692d134cfb4f0", + "version": "2.1.0", + "port-version": 0 + }, { "git-tree": "2bb41149cb766344588a2847fcd672ff2a84f5db", "version": "2.0.0",