From: Guy Harris Date: Wed, 30 Oct 2019 03:09:14 +0000 (-0700) Subject: Require CMake 3.12 or later on Windows. X-Git-Tag: tcpdump-4.99-bp~618 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/42ddfda12ddbbafdb8c6e5ddafe4850aac7726fa 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=. --- 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,