mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
Autogen: Do not use per-config file suffixes with VS yet
The change in commit v3.9.0-rc1~42^2~1 (Autogen: Per-config file suffixes, 2017-05-15) broke Visual Studio builds because the generators do not yet fully support per-config sources. Disable the behavior on Visual Studio generators for now. Fixes: #16939
This commit is contained in:
@@ -162,6 +162,10 @@ static bool IsMultiConfig(cmGlobalGenerator* globalGen)
|
||||
if (globalGen->GetName().find("Xcode") != std::string::npos) {
|
||||
return false;
|
||||
}
|
||||
// FIXME: Visual Studio does not fully support per-config sources yet.
|
||||
if (globalGen->GetName().find("Visual Studio") != std::string::npos) {
|
||||
return false;
|
||||
}
|
||||
return globalGen->IsMultiConfig();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user