[stillwater-universal] Update to 4.8.0 (#53427)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
xiaozhuai 2026-08-15 14:55:05 +08:00 committed by GitHub
parent 72d9ee9b55
commit 215b7b00cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 8 deletions

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6759f30..91c8f55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -729,7 +729,9 @@ execute_process(
add_definitions("-DGIT_COMMIT_HASH=${GIT_COMMIT_HASH}")
add_definitions("-DGIT_BRANCH=${GIT_BRANCH}")
-set(PROJECT_VERSION "${PROJECT_VERSION}.${GIT_COMMIT_HASH}")
+if(GIT_COMMIT_HASH)
+ set(PROJECT_VERSION "${PROJECT_VERSION}.${GIT_COMMIT_HASH}")
+endif()
message(STATUS "")
message(STATUS "PROJECT_NAME = ${PROJECT_NAME}")

View File

@ -9,10 +9,11 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stillwater-sc/universal
REF "v${VERSION}"
SHA512 099b634b2242243ac1319e5b6aafb5f3787ab1c03ad9b0cf3abbeec9eb5773d9efc64f1f80c1c566d112f6c77bea55de638ea38a0edc3eb98311ab4e89b0bd85
SHA512 f7173e3d742b4e9275799bce16fed6296e4db3a2a397a705d896841523a6fc3629f4c33ed452b777883944c0c3312c392b6609b949ee4582cf537f8e4cd998d7
HEAD_REF master
PATCHES
fix-install-path.patch
fix-package-version.patch
)
vcpkg_cmake_configure(
@ -33,5 +34,4 @@ file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/include/universal/internal/variablecascade"
)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,4 +0,0 @@
The package stillwater-universal provides CMake targets:
find_package(universal CONFIG REQUIRED)
target_link_libraries(main PRIVATE universal::universal)

View File

@ -1,6 +1,6 @@
{
"name": "stillwater-universal",
"version": "4.7.9",
"version": "4.8.0",
"description": "A header-only C++ library for plug-in replacement number systems for native types",
"homepage": "https://github.com/stillwater-sc/universal",
"license": "MIT",

View File

@ -9829,7 +9829,7 @@
"port-version": 0
},
"stillwater-universal": {
"baseline": "4.7.9",
"baseline": "4.8.0",
"port-version": 0
},
"stlab": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "20215e7ce043909c0db35aa54d2da3a65b61941f",
"version": "4.8.0",
"port-version": 0
},
{
"git-tree": "a2d83c4dc5bed23dcb8e01c49734d75cdccbb251",
"version": "4.7.9",