[cereal] Replace deprecated cmake (#24897)

* Replace deprecared cmake

* version
This commit is contained in:
Thomas1664 2022-05-25 21:18:21 +02:00 committed by GitHub
parent 46720b28d5
commit 4a182b35d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 8 deletions

View File

@ -8,20 +8,18 @@ vcpkg_from_github(
HEAD_REF master
)
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS
-DJUST_INSTALL_CEREAL=ON
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cereal)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cereal)
# Clean
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
file(COPY "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,18 @@
{
"name": "cereal",
"version": "1.3.2",
"port-version": 1,
"description": "a header-only C++11 serialization library (built in support for binary, XML and JSon)",
"homepage": "https://github.com/USCiLab/cereal",
"license": "BSD-3-Clause"
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1306,7 +1306,7 @@
},
"cereal": {
"baseline": "1.3.2",
"port-version": 0
"port-version": 1
},
"ceres": {
"baseline": "2.1.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "075869fcf5302c6dd11d564286d0dfa1d2d4d7a1",
"version": "1.3.2",
"port-version": 1
},
{
"git-tree": "fdaabbb005403148dd7e53f5158199f6b1b297f2",
"version": "1.3.2",