diff options
author | Brad King <brad.king@kitware.com> | 2023-08-08 17:29:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-08-10 13:33:19 (GMT) |
commit | 209973e510be9555268eb7b5722a56be60661130 (patch) | |
tree | d9982c6802dff19f5b6a1513fb1372b759947fd0 /Source/cmGlobalVisualStudio14Generator.cxx | |
parent | ec6dd77053b2c88a7a341ac67184fb605a4fa837 (diff) | |
download | CMake-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.cxx | 3 |
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 |