aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/benchmark/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/benchmark/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/benchmark/portfile.cmake')
-rw-r--r--vcpkg/ports/benchmark/portfile.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/benchmark/portfile.cmake b/vcpkg/ports/benchmark/portfile.cmake
new file mode 100644
index 0000000..65bd375
--- /dev/null
+++ b/vcpkg/ports/benchmark/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO google/benchmark
+ REF "v${VERSION}"
+ SHA512 f9031f144a7deeed151d22676b50384c03e5bbd19b68dac9471e91e49c408b770158c5c325f58e6ac07437955fdab3f08aeee76ba7ca5f97d2b51f14f6782416
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBENCHMARK_ENABLE_TESTING=OFF
+ -DBENCHMARK_INSTALL_DOCS=OFF
+ -DBENCHMARK_ENABLE_WERROR=OFF
+ -Werror=old-style-cast
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/benchmark)
+
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")