From 3379a3e8e2e27bcba243a14b31b3c3b5943b55d0 Mon Sep 17 00:00:00 2001 From: Mikhail Paulyshka Date: Sun, 12 Mar 2017 15:22:05 +0300 Subject: [mpir] handle Windows SDK version properly (+1 squashed commits) Squashed commits: [a820112] [mpir] retarget MSVS2017 to Windows 10 SDK --- ports/mpir/CONTROL | 2 +- ports/mpir/portfile.cmake | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/mpir/CONTROL b/ports/mpir/CONTROL index 2b67c7c98..fc15d9b41 100644 --- a/ports/mpir/CONTROL +++ b/ports/mpir/CONTROL @@ -1,3 +1,3 @@ Source: mpir -Version: 3.0.0-1 +Version: 3.0.0-2 Description: Multiple Precision Integers and Rationals. \ No newline at end of file diff --git a/ports/mpir/portfile.cmake b/ports/mpir/portfile.cmake index 96bfa9454..41ae41b01 100644 --- a/ports/mpir/portfile.cmake +++ b/ports/mpir/portfile.cmake @@ -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() -- cgit v1.2.3