aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcbor/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcbor/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libcbor/portfile.cmake')
-rw-r--r--vcpkg/ports/libcbor/portfile.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/libcbor/portfile.cmake b/vcpkg/ports/libcbor/portfile.cmake
new file mode 100644
index 0000000..20d43b5
--- /dev/null
+++ b/vcpkg/ports/libcbor/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO PJK/libcbor
+ REF "v${VERSION}"
+ SHA512 4b41f3c55de0169a60cbd353694c741c3db32d6a173feb1cb14022a7daf8511fc32befbaff7133903ea005df3db02e8ebd67881dff2cfdb89a5e51203b03fe4f
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCMAKE_POLICY_DEFAULT_CMP0054=NEW
+ -DSANITIZE=OFF
+ -DWITH_EXAMPLES=OFF
+ -DWITH_TESTS=OFF
+)
+
+vcpkg_cmake_build()
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")