2021-03-29 18:25:14 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PJK/libcbor
|
2023-03-15 02:59:55 +08:00
|
|
|
REF "v${VERSION}"
|
2024-11-25 21:48:01 +01:00
|
|
|
SHA512 c14aaa55c0c82e09b9eb2cc6847951d1bac8a081a247776c507d5450367da5717b1056bad09fb0f0178311de8754e8f89c060e0fc0f400fafdc42de441421e66
|
2021-03-29 18:25:14 +02:00
|
|
|
HEAD_REF master
|
2024-11-25 21:48:01 +01:00
|
|
|
PATCHES cmake-config.diff
|
2021-03-29 18:25:14 +02:00
|
|
|
)
|
|
|
|
|
2022-04-29 01:10:18 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2024-11-25 21:48:01 +01:00
|
|
|
-DCMAKE_POLICY_DEFAULT_CMP0054=NEW
|
2022-04-29 01:10:18 +02:00
|
|
|
-DSANITIZE=OFF
|
2024-11-25 21:48:01 +01:00
|
|
|
-DWITH_EXAMPLES=OFF
|
|
|
|
-DWITH_TESTS=OFF
|
2022-04-29 01:10:18 +02:00
|
|
|
)
|
2021-03-29 18:25:14 +02:00
|
|
|
|
2022-04-29 01:10:18 +02:00
|
|
|
vcpkg_cmake_build()
|
|
|
|
vcpkg_cmake_install()
|
2021-03-29 18:25:14 +02:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2024-11-25 21:48:01 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2021-03-29 18:25:14 +02:00
|
|
|
|
2024-11-25 21:48:01 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-03-29 18:25:14 +02:00
|
|
|
|
2023-03-15 02:59:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|