mirror of
https://github.com/reactos/CMake.git
synced 2025-03-04 09:57:12 +00:00
Merge topic 'win10-sdk-request-mismatch'
80f59ee6 cmGlobalVisualStudio14Generator: notify when the SDK version doesn't match Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !866
This commit is contained in:
commit
aa97170f2b
@ -151,6 +151,13 @@ bool cmGlobalVisualStudio14Generator::SelectWindows10SDK(cmMakefile* mf,
|
||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||
return false;
|
||||
}
|
||||
if (!cmSystemTools::VersionCompareEqual(this->WindowsTargetPlatformVersion,
|
||||
this->SystemVersion)) {
|
||||
std::ostringstream e;
|
||||
e << "Selecting Windows SDK version " << this->WindowsTargetPlatformVersion
|
||||
<< " to target Windows " << this->SystemVersion << ".";
|
||||
mf->DisplayStatus(e.str().c_str(), -1);
|
||||
}
|
||||
mf->AddDefinition("CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION",
|
||||
this->WindowsTargetPlatformVersion.c_str());
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user