From 83a515e1e4be757428c07d1f3c3e9c4e10735703 Mon Sep 17 00:00:00 2001 From: zabulus Date: Sun, 8 May 2016 16:28:31 +0300 Subject: [PATCH] Fix _WIN32_WINNT for Windows Store Apps >= 10.* --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa6b6fa1..d3e42dd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,9 @@ if(NOT CRYPTOPP_DATA_DIR STREQUAL "") endif() if(WINDOWS_STORE OR WINDOWS_PHONE) + if("${CMAKE_SYSTEM_VERSION}" MATCHES "10\\.0.*") + SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D\"_WIN32_WINNT=0x0A00\"" ) + endif() SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI\"winapifamily.h\"" ) endif() #============================================================================