2023-03-24 06:58:42 +08:00
|
|
|
# header-only library
|
2017-05-19 11:03:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-06-21 04:19:56 +08:00
|
|
|
REPO doctest/doctest
|
2023-03-24 06:58:42 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 04425686057079d3f1a6f767c487f1953050f553dbff9fc42b42dde1358fe26e46bf6219881bbfce625f15cb9c229474d82688120eb2cb2b1d8138db0cc91b3c
|
2017-05-19 11:03:52 +08:00
|
|
|
HEAD_REF master
|
2016-09-22 14:02:02 +08:00
|
|
|
)
|
|
|
|
|
2022-06-21 04:19:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-10-06 07:12:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-06-21 04:19:56 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-02-17 06:45:10 +08:00
|
|
|
OPTIONS
|
|
|
|
-DDOCTEST_WITH_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-06-21 04:19:56 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2016-09-22 14:02:02 +08:00
|
|
|
|
2023-03-24 06:58:42 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|