aboutsummaryrefslogtreecommitdiff
path: root/c/CMakeLists.txt
diff options
context:
space:
mode:
authorKeith Winstein <[email protected]>2025-08-20 16:19:56 -0700
committerJack O'Connor <[email protected]>2025-10-19 15:41:44 -0700
commitedc02f4470d89c4913781ce84aad1bd62f7e3f60 (patch)
treec51c2ec171bf1f4bec34a13d33d66a1e37870460 /c/CMakeLists.txt
parentf8dbfe0b18fd500fd5ae2647c76a5bbdcf49f348 (diff)
Update CMakeLists cmake_minimum_required to suppress warning
cmake 3.31.6 prints a warning when configuring projects that specify a minimum version of < 3.10. This updates the version range to suppress the warning. We chose CMake 3.18 as the upper bound as the vast majority of users should be using newer CMake versions--CMake 3.18 is shipped in the current LTS version of Debian (11). Furthermore it precludes some of the more significant policy changes introduced with CMake 3.19, i.e. we should get away with not testing the build with every CMake version.
Diffstat (limited to 'c/CMakeLists.txt')
-rw-r--r--c/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index 0bb972e..1093089 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.9...3.18 FATAL_ERROR)
# respect C_EXTENSIONS OFF without explicitly setting C_STANDARD
if (POLICY CMP0128)