summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Hawicz <erh+git@nimenees.com>2022-12-27 09:25:58 -0500
committerGitHub <noreply@github.com>2022-12-27 09:25:58 -0500
commitb6ba9429d09448f0d180377826fec0287a89c84a (patch)
tree9aceb38dabb5513f9595dd610c83aa8cbd5f3968
parent79c147203e2f90806fba0487fc26ab5e649c8755 (diff)
parentdebe8b70b7987cc5c429a5e5fc4dced7e4fca089 (diff)
downloadjson-c-b6ba9429d09448f0d180377826fec0287a89c84a.tar.gz
Merge pull request #802 from yrashk/patch-1
Problem: modern CMake warns about version 2.8
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2be027d..d234af7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,9 @@
-# Many projects still are stuck using CMake 2.8 is several places so it's good to provide backward support too. This is
+# Many projects still are stuck using CMake 2.8 in several places so it's good to provide backward support too. This is
# specially true in old embedded systems (OpenWRT and friends) where CMake isn't necessarily upgraded.
-cmake_minimum_required(VERSION 2.8)
+# We set it to 2.8.12 as CMake currently indicates that support for versions below it will be removed
+# from a future version ("Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.")
+# 2.8.12 was released in 2013.
+cmake_minimum_required(VERSION 2.8.12)
if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)