2020-09-10 02:43:20 +08:00
|
|
|
#https://github.com/google/benchmark/issues/661
|
2021-09-23 19:41:52 +02:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
2017-05-10 02:43:39 +03:00
|
|
|
|
2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-05-10 02:43:39 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/benchmark
|
2021-09-23 19:41:52 +02:00
|
|
|
REF f91b6b42b1b9854772a90ae9501464a161707d1e # v1.6.0
|
|
|
|
SHA512 5e3db75fcaa86b766d33e368f58cec5c5b2b9ba7fde658d13868d577679c13069756e68e86323b972daccc4f7d5e392d24d2d42e5308c1ae7e9955e651d45866
|
2017-05-10 02:43:39 +03:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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
|
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
|
2021-09-23 19:41:52 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|