2020-06-19 06:33:42 +08:00
|
|
|
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinus/nanobench
|
2022-04-19 23:32:34 +08:00
|
|
|
REF v4.3.7
|
|
|
|
SHA512 2f5b9573e220b507586c8586903489bd7dc2a8a09da07bd2454842a4c33c0323b0911ebeb902d5098c7dd9c96925d9bc3d4ca62fc5798f630b4b4d3e75d117a7
|
2020-06-19 06:33:42 +08:00
|
|
|
HEAD_REF master
|
2022-04-19 23:32:34 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cmakefile.patch
|
2020-06-19 06:33:42 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 23:32:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-19 06:33:42 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 23:32:34 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2020-06-19 06:33:42 +08:00
|
|
|
# Handle copyright
|
2022-04-19 23:32:34 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|