mirror of https://github.com/microsoft/vcpkg.git
[cereal] Replace deprecated cmake (#24897)
* Replace deprecared cmake * version
This commit is contained in:
parent
46720b28d5
commit
4a182b35d8
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1306,7 +1306,7 @@
|
|||
},
|
||||
"cereal": {
|
||||
"baseline": "1.3.2",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"ceres": {
|
||||
"baseline": "2.1.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "075869fcf5302c6dd11d564286d0dfa1d2d4d7a1",
|
||||
"version": "1.3.2",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "fdaabbb005403148dd7e53f5158199f6b1b297f2",
|
||||
"version": "1.3.2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue