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()