meta-openembedded/meta-oe/recipes-support/cli11/cli11_2.5.0.bb
Alper Ak de3c8d3ff2
cli11: Upgrade 2.3.2 -> 2.5.0 to allow CMake 4+ compatibility
- Drop 0001-Do-not-download-the-catch-framework-during-configure.patch

The cli11 recipe previously included a patch to disable downloading
of the Catch2 test framework during the build, and manually copied
the catch.hpp file into the source tree.

With the new change, we now declare a dependency on the catch2 recipe,
allowing the build system to use the system provided Catch2 headers
instead of downloading or copying them. The patch to remove the
download logic is no longer needed and has been dropped for a cleaner
and more maintainable recipe.

Also, If Catch2 is already found, it doesn't enter the block of the download
step accordingly to CMakeLists.txt.

- The LICENSE file has changed so updated LIC_FILES_CHKSUM to match the new md5sum.

Changelog: https://github.com/CLIUtils/CLI11/blob/v2.5.0/CHANGELOG.md

Fix:

| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
|   Compatibility with CMake < 3.5 has been removed from CMake.
|
|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
|   to tell CMake that the project requires at least <min> but has been updated
|   to work with policies introduced by <max> or earlier.
|
|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
|
| -- Configuring incomplete, errors occurred!

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-08 23:40:33 -07:00

19 lines
697 B
BlitzBasic

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=b8bdde6bda8508bef68a39f3e0d7e939"
DEPENDS = "catch2"
SRCREV = "4160d259d961cd393fd8d67590a8c7d210207348"
SRC_URI = "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https"
SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc"
inherit cmake
# cli11 is a header only C++ library, so the main package will be empty.
RDEPENDS:${PN}-dev = ""
BBCLASSEXTEND = "native nativesdk"