summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio14Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-08 17:29:54 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-10 13:33:19 (GMT)
commit209973e510be9555268eb7b5722a56be60661130 (patch)
treed9982c6802dff19f5b6a1513fb1372b759947fd0 /Source/cmGlobalVisualStudio14Generator.cxx
parentec6dd77053b2c88a7a341ac67184fb605a4fa837 (diff)
downloadCMake-209973e510be9555268eb7b5722a56be60661130.zip
CMake-209973e510be9555268eb7b5722a56be60661130.tar.gz
CMake-209973e510be9555268eb7b5722a56be60661130.tar.bz2
VS: Do not print empty Windows SDK version when none is selected
Diffstat (limited to 'Source/cmGlobalVisualStudio14Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio14Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio14Generator.cxx b/Source/cmGlobalVisualStudio14Generator.cxx
index 4300d5c..20aa0b0 100644
--- a/Source/cmGlobalVisualStudio14Generator.cxx
+++ b/Source/cmGlobalVisualStudio14Generator.cxx
@@ -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