2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-05-10 07:43:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/benchmark
|
2022-03-31 07:30:03 +08:00
|
|
|
REF v1.6.1
|
|
|
|
SHA512 7d3e3baf5a2d92e9552ab5007c37253b3510ac269edf8922a2794ff3dfbd0bf5b4c519240d4577b1ec30ef9e8a64caa17a809054c3dc7f2b1bcd410596177d67
|
2017-05-10 07:43:39 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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
|
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)
|