[check] Update library to 0.13.0 (#8722)

This commit is contained in:
Ehsan 2019-10-25 02:19:23 +03:30 committed by Victor Romero
parent 94bb8f3ccd
commit 397c783ea7
3 changed files with 9 additions and 23 deletions

View File

@ -1,3 +1,3 @@
Source: check
Version: 0.12.0-2
Version: 0.13.0
Description: A unit testing framework for C

View File

@ -1,15 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d66a5d..3b9a72d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,10 +39,6 @@ set(CHECK_VERSION
set(MEMORY_LEAKING_TESTS_ENABLED 1)
-###############################################################################
-# Set build features
-set(CMAKE_BUILD_TYPE Debug)
-
###############################################################################
# Option
option(CHECK_ENABLE_TESTS

View File

@ -2,11 +2,9 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libcheck/check
REF 0.12.0
SHA512 f7b6452b69f999a90e86a8582d980c0c1b74ba5629ee34455724463ba62bfe3501ad0415aa771170f5c638a7a253f123bf87cbef25aadc6569a7a3a4d10fce90
REF 0.13.0
SHA512 7943021c5bc3b5ca7bc552f6fe1287e384724d69e5bb128d58256692e810b194e506fc1b65ea4fed27d065e2176e7371483e918beb48125abfe3b6f1ca68eb8f
HEAD_REF master
PATCHES
fix-build-debug-mode.patch
)
vcpkg_configure_cmake(
@ -16,8 +14,11 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/check.cmake ${CURRENT_PACKAGES_DIR}/cmake/check-config.cmake)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
# cleanup
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
@ -25,4 +26,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING.LESSER DESTINATION ${CURRENT_PACKAGES_DIR}/share/check RENAME copyright)
vcpkg_copy_pdbs()
vcpkg_copy_pdbs()