Merge pull request #171 from zabulus/windows-store-1

Fix _WIN32_WINNT for Windows Store 10 and above.
pull/174/head
Jeffrey Walton 2016-05-08 16:45:02 -05:00
commit 5c57f15d70
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ if(NOT CRYPTOPP_DATA_DIR STREQUAL "")
endif() endif()
if(WINDOWS_STORE OR WINDOWS_PHONE) 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\"" ) SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI\"winapifamily.h\"" )
endif() endif()
#============================================================================ #============================================================================