2017-05-10 07:43:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/benchmark
|
2023-09-27 16:27:24 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 4e12114251c79a426873cfba6e27270b69fc980cef9a68e9cb3170f8e2e203f77dee19ab1e65cad51cd67e60991d3bbfdd52553f22522ce5e6c611b5aa07602c
|
2023-05-11 02:14:42 +08:00
|
|
|
HEAD_REF main
|
2024-01-30 11:59:02 +08:00
|
|
|
PATCHES
|
|
|
|
fix_qnx.patch
|
2017-05-10 07:43:39 +08:00
|
|
|
)
|
|
|
|
|
2021-09-24 01:41:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
2017-05-10 07:43:39 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2017-09-21 16:20:51 +08:00
|
|
|
-DBENCHMARK_ENABLE_TESTING=OFF
|
2024-02-13 06:57:03 +08:00
|
|
|
-DBENCHMARK_INSTALL_DOCS=OFF
|
2024-01-30 11:59:02 +08:00
|
|
|
-Werror=old-style-cast
|
2017-05-10 07:43:39 +08:00
|
|
|
)
|
|
|
|
|
2021-09-24 01:41:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-05-10 07:43:39 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-24 01:41:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/benchmark)
|
2017-05-10 07:43:39 +08:00
|
|
|
|
2021-06-25 04:05:24 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-09-10 02:43:20 +08:00
|
|
|
|
2021-06-25 04:05:24 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-05-10 07:43:39 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-24 01:41:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|