summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-10-29 20:09:14 -0700
committerGuy Harris <guy@alum.mit.edu>2019-10-29 20:09:14 -0700
commit42ddfda12ddbbafdb8c6e5ddafe4850aac7726fa (patch)
tree5ae9bdbc8c41337f16a61b56d73534b7462b268e /CMakeLists.txt
parentc05087101abe59f1c7adc98644cd97a05fdc1279 (diff)
downloadtcpdump-42ddfda12ddbbafdb8c6e5ddafe4850aac7726fa.tar.gz
Require CMake 3.12 or later on Windows.
We require it for policy CMP0074, so the user can tell CMake where the Npcap or WinPcap SDK is hiding with -DPCAP_ROOT=.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f9dd836..3d2ab654 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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,