diff options
author | Brad King <brad.king@kitware.com> | 2017-06-06 13:09:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-07 13:41:49 (GMT) |
commit | cc1b513df143161e437c261cc385225cb4191d16 (patch) | |
tree | 6dd816a09617152a3465e3e7a74be9913b052d67 /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | d025faf436c86ee9cc033fbb324a9bc2c18757fa (diff) | |
download | CMake-cc1b513df143161e437c261cc385225cb4191d16.zip CMake-cc1b513df143161e437c261cc385225cb4191d16.tar.gz CMake-cc1b513df143161e437c261cc385225cb4191d16.tar.bz2 |
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
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index a39c10b..6924ba2 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -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(); } |