mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +08:00
[toml11] update to 3.7.0 (#20798)
* [toml11] update to 3.7.0 * [toml11] change deprecated to new vcpkg functions * Update CI baseline * update portfile.cmake * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
parent
8583a74e38
commit
347337ace9
@ -1,28 +1,27 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ToruNiina/toml11
|
||||
REF v3.5.0
|
||||
SHA512 19c6ee42aa1e186689062e5d2be05f375c8ae4be40be4b6a8e803a642f37214270d5600ccec3d06b4e69aec6896d823e3a8faea29a41643279922d1fe9fae70a
|
||||
REF v3.7.0
|
||||
SHA512 093833ea4354ab91f54c0a346e51d38e297b8c347241f679c023e65fe580edca7852d934a0a0d371524426f61e58ee3a9638061b1230cd72be7ff55fcf12370c
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
OPTIONS
|
||||
-Dtoml11_BUILD_TEST=OFF
|
||||
)
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/toml11 TARGET_PATH share/toml11)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/toml11)
|
||||
|
||||
vcpkg_replace_string(
|
||||
${CURRENT_PACKAGES_DIR}/share/toml11/toml11Config.cmake
|
||||
"${CURRENT_PACKAGES_DIR}/share/toml11/toml11Config.cmake"
|
||||
"\${PACKAGE_PREFIX_DIR}/lib/cmake/toml11/toml11Targets.cmake"
|
||||
"\${PACKAGE_PREFIX_DIR}/share/toml11/toml11Targets.cmake"
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
@ -1,7 +1,16 @@
|
||||
{
|
||||
"name": "toml11",
|
||||
"version-string": "3.5.0",
|
||||
"port-version": 2,
|
||||
"version": "3.7.0",
|
||||
"description": "A C++11 header-only toml parser/encoder depending only on C++ standard library.",
|
||||
"homepage": "https://github.com/ToruNiina/toml11"
|
||||
"homepage": "https://github.com/ToruNiina/toml11",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -6725,8 +6725,8 @@
|
||||
"port-version": 5
|
||||
},
|
||||
"toml11": {
|
||||
"baseline": "3.5.0",
|
||||
"port-version": 2
|
||||
"baseline": "3.7.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"tomlplusplus": {
|
||||
"baseline": "2.5.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ab8e69aef0551e2e862e74ec70b5c2dd58aac36b",
|
||||
"version": "3.7.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "dabcb8338003184011c1b13e49561f9c112a9735",
|
||||
"version-string": "3.5.0",
|
||||
|
Loading…
Reference in New Issue
Block a user