Skip to content

Commit

Permalink
[cereal] Replace deprecated cmake (#24897)
Browse files Browse the repository at this point in the history
* Replace deprecared cmake

* version
  • Loading branch information
Thomas1664 authored May 25, 2022
1 parent 46720b2 commit 4a182b3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
10 changes: 4 additions & 6 deletions ports/cereal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
13 changes: 12 additions & 1 deletion ports/cereal/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@
},
"cereal": {
"baseline": "1.3.2",
"port-version": 0
"port-version": 1
},
"ceres": {
"baseline": "2.1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cereal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "075869fcf5302c6dd11d564286d0dfa1d2d4d7a1",
"version": "1.3.2",
"port-version": 1
},
{
"git-tree": "fdaabbb005403148dd7e53f5158199f6b1b297f2",
"version": "1.3.2",
Expand Down

0 comments on commit 4a182b3

Please sign in to comment.