From 2384b491563b0dc9da40ac304d5cc0f5a82da5e1 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 12 Aug 2019 15:28:30 -0700 Subject: [PATCH] set cmake windows build target to Windows 7 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a9088011..77e67f357 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required (VERSION 3.8) +if(WIN32) + # If building on Windows, set minimum target to Windows 7 + set(CMAKE_SYSTEM_VERSION "7" CACHE STRING INTERNAL FORCE) +endif(WIN32) + # ZeroTier One Version Config set(ZEROTIER_ONE_VERSION_MAJOR 1)