[trantor] spdlog feature added (#50617)

This commit is contained in:
Patrick Colis 2026-03-23 19:09:16 +01:00 committed by GitHub
parent fa02f5bcff
commit ea13a5784c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 2 deletions

View File

@ -9,8 +9,17 @@ vcpkg_from_github(
001-disable-werror.patch
)
set(feature_options)
if("spdlog" IN_LIST FEATURES)
list(APPEND feature_options "-DUSE_SPDLOG=ON")
else()
list(APPEND feature_options "-DUSE_SPDLOG=OFF")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${feature_options}
)
vcpkg_cmake_install()

View File

@ -1,6 +1,7 @@
{
"name": "trantor",
"version-semver": "1.5.26",
"port-version": 1,
"description": "A non-blocking I/O cross-platform TCP network library, using C++14",
"homepage": "https://github.com/an-tao/trantor",
"license": "BSD-2-Clause",
@ -15,5 +16,13 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"spdlog": {
"description": "Enable spdlog support in trantor Logger",
"dependencies": [
"spdlog"
]
}
}
}

View File

@ -10090,7 +10090,7 @@
},
"trantor": {
"baseline": "1.5.26",
"port-version": 0
"port-version": 1
},
"tre": {
"baseline": "0.8.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c5f490cbc684ee7794ada83ee786fa49cee7e43e",
"version-semver": "1.5.26",
"port-version": 1
},
{
"git-tree": "9fba5fa2a56822dcaedc7e9813356635a53c28e4",
"version-semver": "1.5.26",