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-11-15 06:30:32 +08:00
|
|
|
REF v1.7.1
|
|
|
|
SHA512 396af1c1d3eaa2b78c6d23b1472f6088db85a294056ae1c2366dc5c0becdc8f141ba8fc3a235033324ab0a41c2298f5d242ef09b9b6f69d9877de6bcb2062efd
|
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)
|