From d39db8978aae2c02e325ed0a3f7fe3a24dbbd292 Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Thu, 30 Mar 2023 00:24:49 -0400 Subject: [PATCH] CMake | Windows | Change WINVER from 0x0501 to 0x0601 We need to change minimal WINVER from 0x0501 (Windows XP) to 0x0601 (Windows 7) because it is required to use DISPLAYCONFIG_PATH_INFO. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 01f191c9..df61d604 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -282,7 +282,7 @@ endif() # win32_platform.h. We define them here until a saner solution can be found # NOTE: MinGW-w64 and Visual C++ do /not/ need this hack. if (MINGW) - target_compile_definitions(glfw PRIVATE WINVER=0x0501) + target_compile_definitions(glfw PRIVATE WINVER=0x0601) endif() # Workaround for legacy MinGW not providing XInput and DirectInput