Fix _WIN32_WINNT for Windows Store Apps >= 10.*

pull/174/head
zabulus 2016-05-08 16:28:31 +03:00 committed by Jeffrey Walton
parent 728c2a2fe5
commit 819c10c173
1 changed files with 3 additions and 0 deletions

View File

@ -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()
#============================================================================