diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 22:42:44 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 23:03:24 +0100 |
| commit | 45821dacf152ec20e64df8aae72b2b34b8143728 (patch) | |
| tree | e4db8a381b47aa2360d646ffe84fec314897fdb7 | |
| parent | 6b1aa052713a8385b9678d9ae880b99a62e291a7 (diff) | |
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
| -rw-r--r-- | cJSON/1.7.19/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
