flatcc: Add patch for CMake 4+ compatibility

Fix:

| CMake Error at CMakeLists.txt:2 (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>
This commit is contained in:
Alper Ak
2025-07-09 20:30:44 +03:00
committed by Khem Raj
parent a9ad71a360
commit a26e19f191
2 changed files with 53 additions and 1 deletions
@@ -11,10 +11,10 @@ PV = "0.6.2+git"
SRC_URI = " \
git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master \
file://0001-Check-for-C-standard-version-23-for-__fallthrough__.patch \
file://0002-allow-build-with-cmake-4.patch \
"
SRCREV = "1653ec964730ec7d9892a08a1695ada6d20f5196"
inherit cmake
# Enable installation for target