package/pkg-cmake.mk: force config version >=3.5

Some packages have CMakeLists.txt requiring CMake <3.5.

Newer CMake forces at minimum version 3.5, leading to build failures:

https://github.com/skiffos/SkiffOS/actions/runs/14208988354/job/39812576139#step:8:638
https://github.com/skiffos/SkiffOS/actions/runs/14211566256/job/39819600184#step:8:26664

Add the suggested build flag to force version 3.5.x and fix the error:

  -DCMAKE_POLICY_VERSION_MINIMUM=3.5

This is applied to all cmake packages to force 3.5 as a minimum.

Signed-off-by: Christian Stewart <christian@aperture.us>
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Christian Stewart
2025-04-04 11:24:07 -07:00
committed by Thomas Perale
parent d87a2dea29
commit 70aac2d9e8

View File

@@ -53,6 +53,10 @@ define inner-cmake-package
$(3)_SUPPORTS_IN_SOURCE_BUILD ?= YES
# Some packages requires CMake 3.0.0 but latest CMake requires >=3.5
# Set the policy version minimum to force these packages to 3.5 or greater.
$(2)_CONF_OPTS += -DCMAKE_POLICY_VERSION_MINIMUM=3.5
# The default backend, unless specified by the package
$(3)_CMAKE_BACKEND ?= make