]> The Tcpdump Group git mirrors - tcpdump/commitdiff
cmake: Update the minimum required version to 2.8.12 (except Windows)
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 25 Nov 2022 14:49:52 +0000 (15:49 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 1 Jan 2023 10:03:12 +0000 (11:03 +0100)
Windows minimum required is already 3.12.

This change avoids this warning:
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

(Same as in libpcap.)

(cherry picked from commit 9b05cc18ec7b5450bc668f9386d73c92bbfc3491)

CMakeLists.txt

index 01954bd4a494798878200258c81e7f475e422a87..39ac7d3e8fe681a500dc615991ab49fa283e0ebe 100644 (file)
@@ -16,7 +16,7 @@ else(WIN32)
     # environment variable when running pkg-config, to make sure
     # it finds any .pc file from there.
     #
-    cmake_minimum_required(VERSION 2.8.6)
+    cmake_minimum_required(VERSION 2.8.12)
 endif(WIN32)
 
 #