From c18db8d16ebbe4eaa99c67ab9aefe4010d83a626 Mon Sep 17 00:00:00 2001 From: Leif Berg Date: Fri, 27 Sep 2013 14:13:45 -0500 Subject: [PATCH] Update CMakeLists.txt set min API version to WinXP --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d72d8e..e9c2f27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,10 @@ endif() if(WIN32) find_package(WinHID REQUIRED) include_directories(${WINHID_INCLUDE_DIRS}) + if(MSVC) + # Minimum requirement is WinXP + add_definitions(-D_WIN32_WINNT=0x0501) + endif() endif() ###