From 2d2eebb844a8a290bdcf67b7e9c4f9c1c6985539 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Fri, 11 Mar 2022 00:25:32 -0800 Subject: [PATCH] Correct a comment "WINVER=0x0602" means Windows 8. source: https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170 --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 603cc75fe2..6dd16abe54 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1915,7 +1915,7 @@ if (WIN32) else() add_compile_definitions(WINAPI_FAMILY=100) # Desktop app if (onnxruntime_USE_WINML) - add_compile_definitions(WINVER=0x0602 _WIN32_WINNT=0x0602 NTDDI_VERSION=0x06020000) # Support Windows 7 and newer + add_compile_definitions(WINVER=0x0602 _WIN32_WINNT=0x0602 NTDDI_VERSION=0x06020000) # Support Windows 8 and newer else() add_compile_definitions(WINVER=0x0601 _WIN32_WINNT=0x0601 NTDDI_VERSION=0x06010000) # Support Windows 7 and newer endif()