mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
Set WINVER (#4636)
This commit is contained in:
parent
d73e01e5b9
commit
73c99f8269
1 changed files with 1 additions and 0 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Reference in a new issue