diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-10-29 20:09:14 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-10-29 20:09:14 -0700 |
commit | 42ddfda12ddbbafdb8c6e5ddafe4850aac7726fa (patch) | |
tree | 5ae9bdbc8c41337f16a61b56d73534b7462b268e /CMakeLists.txt | |
parent | c05087101abe59f1c7adc98644cd97a05fdc1279 (diff) | |
download | tcpdump-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.txt | 9 |
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, |