mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
VS: Do not print empty Windows SDK version when none is selected
This commit is contained in:
@@ -248,7 +248,8 @@ void cmGlobalVisualStudio14Generator::SetWindowsTargetPlatformVersion(
|
||||
std::string const& version, cmMakefile* mf)
|
||||
{
|
||||
this->WindowsTargetPlatformVersion = version;
|
||||
if (!cmSystemTools::VersionCompareEqual(this->WindowsTargetPlatformVersion,
|
||||
if (!this->WindowsTargetPlatformVersion.empty() &&
|
||||
!cmSystemTools::VersionCompareEqual(this->WindowsTargetPlatformVersion,
|
||||
this->SystemVersion)) {
|
||||
std::ostringstream e;
|
||||
e << "Selecting Windows SDK version " << this->WindowsTargetPlatformVersion
|
||||
|
||||
Reference in New Issue
Block a user