aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkiwixz <kiwixz@outlook.com>2019-02-16 22:45:10 +0000
committerRobert Schumacher <roschuma@microsoft.com>2019-02-16 14:45:10 -0800
commit7e8a854a994f70dc5ad5db7399003fc4a51e47c7 (patch)
tree42c8b7b7ad44608bc36de22b79c4ed8271b8b320
parentb316f9e7439f79b685592bb7914bf92c0a972c83 (diff)
downloadvcpkg-7e8a854a994f70dc5ad5db7399003fc4a51e47c7.tar.gz
vcpkg-7e8a854a994f70dc5ad5db7399003fc4a51e47c7.zip
[doctest] update to 2.2.3, export cmake config (#5386)
* [doctest] update to 2.2.3, export cmake config * [doctest] do not build tests
-rw-r--r--ports/doctest/CONTROL2
-rw-r--r--ports/doctest/portfile.cmake22
2 files changed, 16 insertions, 8 deletions
diff --git a/ports/doctest/CONTROL b/ports/doctest/CONTROL
index 6e2c6242c..c4afd763a 100644
--- a/ports/doctest/CONTROL
+++ b/ports/doctest/CONTROL
@@ -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
diff --git a/ports/doctest/portfile.cmake b/ports/doctest/portfile.cmake
index 2a698a12d..53defc430 100644
--- a/ports/doctest/portfile.cmake
+++ b/ports/doctest/portfile.cmake
@@ -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
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/doctest)
-# Copy header file
-file(INSTALL ${SOURCE_PATH}/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/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)