[variant-lite] Update to 2.0.0 (#20911)

* Update variant-lite to 2.0.0

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
chausner 2021-10-22 07:38:46 +02:00 committed by GitHub
parent ca43793011
commit 96840d5ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 16 deletions

View File

@ -1,29 +1,28 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/variant-lite
REF v1.2.2
SHA512 f0a0760b858d5fdd3cbd6be29e64fdca69222c4e3f6f4f856fa99e7352ede817648c6d698ebde25dec10bf99fc304b1b5ce232c5ffd4fab12aaf444b68c04f02
REF v2.0.0
SHA512 dd255d3664b42305e58c14a0bfc7d6ba54462656001e4e79c14fdb64a6f54b57a00ec3cf10d006614c849528529c6897031df4b52a49ecb91531e89d366d6a9c
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DVARIANT_LITE_OPT_BUILD_TESTS=OFF
-DVARIANT_LITE_OPT_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(
CONFIG_PATH lib/cmake/${PORT}
vcpkg_cmake_config_fixup(
CONFIG_PATH "lib/cmake/${PORT}"
)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug
${CURRENT_PACKAGES_DIR}/lib
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)
file(INSTALL
${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
)

View File

@ -1,6 +1,15 @@
{
"name": "variant-lite",
"version-string": "1.2.2",
"port-version": 1,
"description": "A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library"
"version": "2.0.0",
"description": "A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -6937,8 +6937,8 @@
"port-version": 1
},
"variant-lite": {
"baseline": "1.2.2",
"port-version": 1
"baseline": "2.0.0",
"port-version": 0
},
"vc": {
"baseline": "1.4.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "827279cee8fcc1e2cfc6fd195ebf523cba2917c5",
"version": "2.0.0",
"port-version": 0
},
{
"git-tree": "a932d3f3a9d2390536663cefe804b881408cef11",
"version-string": "1.2.2",