From 73c99f8269dae08de9ee3af47a84514e8ae0c03d Mon Sep 17 00:00:00 2001 From: Tiago Koji Castro Shibata Date: Mon, 27 Jul 2020 20:24:11 -0700 Subject: [PATCH] Set WINVER (#4636) --- cmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 374d28e3ee..703afeacfe 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -162,6 +162,7 @@ if(NOT WIN32) set(onnxruntime_ENABLE_INSTRUMENT OFF) endif() else() + add_compile_definitions(WINVER=0x0601) # Support Windows 7 and newer if(WINDOWS_STORE) # cmake/external/protobuf/src/google/protobuf/compiler/subprocess.cc and onnxruntime/core/platform/windows/env.cc call a bunch of Win32 APIs. # For now, we'll set the API family to desktop globally to expose Win32 symbols in headers; this must be fixed!