]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Require CMake 3.12 or later on Windows.
authorGuy Harris <[email protected]>
Wed, 30 Oct 2019 03:09:14 +0000 (20:09 -0700)
committerGuy Harris <[email protected]>
Wed, 30 Oct 2019 03:09:14 +0000 (20:09 -0700)
We require it for policy CMP0074, so the user can tell CMake where the
Npcap or WinPcap SDK is hiding with -DPCAP_ROOT=.

CMakeLists.txt

index 3f9dd8362337221de94b1d092e3cf5123b1383e8..3d2ab6541e45c52e50d47f14e071cccd9ee75273 100644 (file)
@@ -1,4 +1,11 @@
-cmake_minimum_required(VERSION 2.8.6)
+if(WIN32)
+    #
+    # We need 3.12 or later, so that we can set policy CMP0074; see
+    # below.
+    cmake_minimum_required(VERSION 3.12)
+else(WIN32)
+    cmake_minimum_required(VERSION 2.8.6)
+endif(WIN32)
 
 #
 # We want find_path() and find_library() to honor {packagename}_ROOT,