mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 01:09:30 -05: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)
|
std::string const& version, cmMakefile* mf)
|
||||||
{
|
{
|
||||||
this->WindowsTargetPlatformVersion = version;
|
this->WindowsTargetPlatformVersion = version;
|
||||||
if (!cmSystemTools::VersionCompareEqual(this->WindowsTargetPlatformVersion,
|
if (!this->WindowsTargetPlatformVersion.empty() &&
|
||||||
|
!cmSystemTools::VersionCompareEqual(this->WindowsTargetPlatformVersion,
|
||||||
this->SystemVersion)) {
|
this->SystemVersion)) {
|
||||||
std::ostringstream e;
|
std::ostringstream e;
|
||||||
e << "Selecting Windows SDK version " << this->WindowsTargetPlatformVersion
|
e << "Selecting Windows SDK version " << this->WindowsTargetPlatformVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user