[doctest] update to 2.2.3, export cmake config (#5386)

* [doctest] update to 2.2.3, export cmake config

* [doctest] do not build tests
This commit is contained in:
kiwixz 2019-02-16 22:45:10 +00:00 committed by Robert Schumacher
parent b316f9e743
commit 7e8a854a99
2 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,3 @@
Source: doctest
Version: 2.2.2
Version: 2.2.3
Description: The fastest feature-rich C++ single-header testing framework for unit tests and TDD

View File

@ -1,15 +1,23 @@
#header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO onqtam/doctest
REF 2.2.2
SHA512 a312365f156de9d137ae3992bbfdd2875d677259c53a319938e3d31af6ad72fae82f75482bda708fe2b93a5a3fd1369e9bca9d84b1309d865387ad27146e4ac3
REF 2.2.3
SHA512 764463178ea109d46714751a0e5a74d9896c3cf3f8b8c3424a9252c58d9f2c1a2c7fa7eec68e516fb96f4634ae0078ea00d49d28d45a6331c3ebcbe1ed6b1175
HEAD_REF master
)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DDOCTEST_WITH_TESTS=OFF
)
# Copy header file
file(INSTALL ${SOURCE_PATH}/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/doctest)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/doctest/copyright COPYONLY)