mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 16:59:59 +00:00
cli11: upgrade 1.9.1 -> 2.2.0
License-Update: Copyright year updated to 2022. 0001-Do-not-download-the-catch-framework-during-configure.patch added to download the catch framework before configure. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
|||||||
|
From 93557d5c5acf9ebb2c0fa708658e1d36621dd23a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Wang Mingyu <wangmy@fujitsu.com>
|
||||||
|
Date: Wed, 7 Sep 2022 10:05:15 +0900
|
||||||
|
Subject: [PATCH] Do not download the catch framework during configure.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [configuration]
|
||||||
|
|
||||||
|
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||||
|
---
|
||||||
|
tests/CMakeLists.txt | 15 ---------------
|
||||||
|
1 file changed, 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||||
|
index 80c4f6a..ae210db 100644
|
||||||
|
--- a/tests/CMakeLists.txt
|
||||||
|
+++ b/tests/CMakeLists.txt
|
||||||
|
@@ -74,21 +74,6 @@ if(Catch2_FOUND)
|
||||||
|
endif()
|
||||||
|
message(STATUS "Found Catch2")
|
||||||
|
target_link_libraries(catch_main PUBLIC Catch2::Catch2)
|
||||||
|
-else()
|
||||||
|
- message(STATUS "Downloading Catch2")
|
||||||
|
-
|
||||||
|
- # FetchContent would be better, but requires newer CMake.
|
||||||
|
- file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/catch2")
|
||||||
|
- set(url https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp)
|
||||||
|
- file(
|
||||||
|
- DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp"
|
||||||
|
- STATUS status
|
||||||
|
- EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc)
|
||||||
|
- list(GET status 0 error)
|
||||||
|
- if(error)
|
||||||
|
- message(FATAL_ERROR "Could not download ${url}, and Catch2 not found on your system.")
|
||||||
|
- endif()
|
||||||
|
- target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Target must already exist
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
SUMMARY = "C++11 command line parser"
|
|
||||||
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
|
|
||||||
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
|
|
||||||
LICENSE = "BSD-3-Clause"
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b73927b18d5c6cd8d2ed28a6ad539733"
|
|
||||||
SRCREV = "5cb3efabce007c3a0230e4cc2e27da491c646b6c"
|
|
||||||
PV .= "+git${SRCPV}"
|
|
||||||
|
|
||||||
SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=v1;protocol=https"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
|
||||||
|
|
||||||
inherit cmake
|
|
||||||
inherit ptest
|
|
||||||
|
|
||||||
# cli11 is a header only C++ library, so the main package will be empty.
|
|
||||||
RDEPENDS:${PN}-dev = ""
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
SUMMARY = "C++11 command line parser"
|
||||||
|
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
|
||||||
|
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
|
||||||
|
LICENSE = "BSD-3-Clause"
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=9ad746b5f49c0fd53c08ca1faff1922c"
|
||||||
|
SRCREV = "b9be5b9444772324459989177108a6a65b8b2769"
|
||||||
|
PV .= "+git${SRCPV}"
|
||||||
|
|
||||||
|
SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https \
|
||||||
|
https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp \
|
||||||
|
file://0001-Do-not-download-the-catch-framework-during-configure.patch"
|
||||||
|
|
||||||
|
SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc"
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
do_configure:prepend() {
|
||||||
|
mkdir -p ${S}/tests/catch2
|
||||||
|
cp ${DL_DIR}/catch.hpp ${S}/tests/catch2/catch.hpp
|
||||||
|
}
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
inherit ptest
|
||||||
|
|
||||||
|
# cli11 is a header only C++ library, so the main package will be empty.
|
||||||
|
RDEPENDS:${PN}-dev = ""
|
||||||
Reference in New Issue
Block a user