mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[croncpp] don't build tests (#23434)
This commit is contained in:
parent
6308196b25
commit
198b84f427
17
ports/croncpp/no-test.patch
Normal file
17
ports/croncpp/no-test.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
||||
index a82e605..405f306 100644
|
||||
--- a/test/CMakeLists.txt
|
||||
+++ b/test/CMakeLists.txt
|
||||
@@ -1,3 +1,4 @@
|
||||
+if(BUILD_TESTS)
|
||||
cmake_minimum_required(VERSION 3.7.0)
|
||||
project(test_croncpp)
|
||||
|
||||
@@ -9,7 +10,6 @@ file(GLOB SOURCES "*.cpp" "include/*.cpp")
|
||||
|
||||
add_executable(test_croncpp ${SOURCES} ${headers})
|
||||
|
||||
-if(BUILD_TESTS)
|
||||
enable_testing()
|
||||
|
||||
add_test(NAME "test_croncpp" COMMAND "test_croncpp" "-r compact")
|
@ -5,19 +5,22 @@ vcpkg_from_github(
|
||||
REF 11cce4666a06c40346c7ba380ddd90c53806809d #master on 9/4/2020
|
||||
SHA512 8f4d892ce90d8eca3711b21728bb599bf64857b20c0b143c5277687d0b6e5d5b8bf3e6dc7f9e8d028ba4e5ee711a5a9e750bcc2f771177d2f659c0c19e12207a
|
||||
HEAD_REF master
|
||||
PATCHES 0001-fix-cmake.patch
|
||||
PATCHES
|
||||
0001-fix-cmake.patch
|
||||
no-test.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
# # Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/croncpp RENAME copyright)
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,7 +1,18 @@
|
||||
{
|
||||
"name": "croncpp",
|
||||
"version-string": "2020-09-04",
|
||||
"port-version": 2,
|
||||
"version-date": "2020-09-04",
|
||||
"port-version": 3,
|
||||
"description": "croncpp is a C++17 header-only cross-platform library for handling CRON expressions.",
|
||||
"homepage": "https://github.com/mariusbancila/croncpp"
|
||||
"homepage": "https://github.com/mariusbancila/croncpp",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1662,7 +1662,7 @@
|
||||
},
|
||||
"croncpp": {
|
||||
"baseline": "2020-09-04",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"crossguid": {
|
||||
"baseline": "2021-10-22",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "0fb4aefe39d2d695cb5cc89a4f3c92e4229605f5",
|
||||
"version-date": "2020-09-04",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "79f67dcb192287955f663db8cc36f73455f78990",
|
||||
"version-string": "2020-09-04",
|
||||
|
Loading…
x
Reference in New Issue
Block a user