We require it for policy CMP0074, so the user can tell CMake where the
Npcap or WinPcap SDK is hiding with -DPCAP_ROOT=.
-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,