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}"
|
2024-09-10 11:25:20 +08:00
|
|
|
SHA512 0e91e0e5a2222d7650fd8bd9cafb2f0e7c1689cd1b87b2cc529c738db12bfef31162aa5a4da78f7b0aa7f0101dc08b626802c58d39862458f82f9fea9316ca25
|
2023-05-11 02:14:42 +08:00
|
|
|
HEAD_REF main
|
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
|
2024-07-26 15:11:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|