[mpir] handle Windows SDK version properly (+1 squashed commits)

Squashed commits:

[a820112] [mpir] retarget MSVS2017 to Windows 10 SDK
This commit is contained in:
Mikhail Paulyshka 2017-03-12 15:22:05 +03:00
parent cff0971773
commit 3379a3e8e2
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: mpir
Version: 3.0.0-1
Version: 3.0.0-2
Description: Multiple Precision Integers and Rationals.

View File

@ -16,14 +16,17 @@ if(VCPKG_PLATFORM_TOOLSET MATCHES "v141*")
else()
set(MSVC_VERSION 14)
endif()
vcpkg_get_windows_sdk(WINDOWS_SDK)
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/build.vc${MSVC_VERSION}/dll_mpir_gc/dll_mpir_gc.vcxproj
TARGET_PLATFORM_VERSION ${WINDOWS_SDK}
)
else()
vcpkg_build_msbuild(
PROJECT_PATH ${SOURCE_PATH}/build.vc${MSVC_VERSION}/lib_mpir_gc/lib_mpir_gc.vcxproj
TARGET_PLATFORM_VERSION ${WINDOWS_SDK}
)
endif()