Set WINVER (#4636)

This commit is contained in:
Tiago Koji Castro Shibata 2020-07-27 20:24:11 -07:00 committed by GitHub
parent d73e01e5b9
commit 73c99f8269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!