Skip to content

Commit edc02f4

Browse files
keithwoconnor663
authored andcommitted
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.
1 parent f8dbfe0 commit edc02f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.9...3.18 FATAL_ERROR)
22

33
# respect C_EXTENSIONS OFF without explicitly setting C_STANDARD
44
if (POLICY CMP0128)

0 commit comments

Comments
 (0)