From 99a55b7a725979d92aea453956b96d724f3b66ad Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 15 Mar 2016 13:06:26 -0700 Subject: [PATCH] Fix #528 : make powershell.exe build with VS 2015 Add legacy_stdio_definitions.lib to the list of linked assemblies --- PowerShellGitHubDev.psm1 | 2 +- src/powershell-native/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index 60e2e166fa..d1c183cd2a 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -40,7 +40,7 @@ function Start-PSBuild [switch]$FullCLR, [Parameter(ParameterSetName='FullCLR')] - [string]$cmakeGenerator = "Visual Studio 12 2013", + [string]$cmakeGenerator = "Visual Studio 14 2015", [Parameter(ParameterSetName='FullCLR')] [ValidateSet("Debug", diff --git a/src/powershell-native/CMakeLists.txt b/src/powershell-native/CMakeLists.txt index 1562429dae..31076f2abc 100644 --- a/src/powershell-native/CMakeLists.txt +++ b/src/powershell-native/CMakeLists.txt @@ -36,4 +36,5 @@ target_link_libraries(powershell mscoree.lib MUILoad.lib kernel32.lib - msxml6.lib) + msxml6.lib + legacy_stdio_definitions.lib)