From 45821dacf152ec20e64df8aae72b2b34b8143728 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 8 Feb 2026 22:42:44 +0100 Subject: cJSON/1.7.19/Dockerfile: Fix CMake >= 4.0 support CMake 4.0 decided to break compatibility against projects supporting CMake 3.5 and newer. [1] As a workaround, CMake 4.0 suggests the flag added by this commit. [1]: https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features --- cJSON/1.7.19/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/cJSON/1.7.19/Dockerfile b/cJSON/1.7.19/Dockerfile index 30e11fa..2281f50 100644 --- a/cJSON/1.7.19/Dockerfile +++ b/cJSON/1.7.19/Dockerfile @@ -12,6 +12,7 @@ WORKDIR /cJSON RUN cmake -B build \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -DCMAKE_C_FLAGS="-ffunction-sections -fdata-sections" RUN cmake --build build/ --parallel $(nproc --all) WORKDIR build -- cgit v1.2.3