2017-05-10 02:43:39 +03: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-09 22:25:20 -05:00
|
|
|
SHA512 0e91e0e5a2222d7650fd8bd9cafb2f0e7c1689cd1b87b2cc529c738db12bfef31162aa5a4da78f7b0aa7f0101dc08b626802c58d39862458f82f9fea9316ca25
|
2023-05-10 20:14:42 +02:00
|
|
|
HEAD_REF main
|
2017-05-10 02:43:39 +03:00
|
|
|
)
|
|
|
|
|
2021-09-23 19:41:52 +02:00
|
|
|
vcpkg_cmake_configure(
|
2017-05-10 02:43:39 +03:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2017-09-21 01:20:51 -07:00
|
|
|
-DBENCHMARK_ENABLE_TESTING=OFF
|
2024-02-12 23:57:03 +01:00
|
|
|
-DBENCHMARK_INSTALL_DOCS=OFF
|
2024-01-30 11:59:02 +08:00
|
|
|
-Werror=old-style-cast
|
2017-05-10 02:43:39 +03:00
|
|
|
)
|
|
|
|
|
2021-09-23 19:41:52 +02:00
|
|
|
vcpkg_cmake_install()
|
2017-05-10 02:43:39 +03:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-23 19:41:52 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/benchmark)
|
2017-05-10 02:43:39 +03:00
|
|
|
|
2021-06-24 22:05:24 +02:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-09-10 02:43:20 +08:00
|
|
|
|
2021-06-24 22:05:24 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-05-10 02:43:39 +03:00
|
|
|
|
|
|
|
# Handle copyright
|
2024-07-26 00:11:21 -07:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|