VS: Recognize VS/LLVM toolset names as Clang

Update the toolset name matching added by commit v3.6.0-rc1~279^2~10
(VS: in Clang/C2 toolset, setup correct compiler settings, 2016-02-18)
to match VS/LLVM toolset names too.
This commit is contained in:
Roman Wüger
2016-09-28 08:46:00 +02:00
committed by Brad King
parent 1adcf4917e
commit 3f300b84f3
2 changed files with 4 additions and 3 deletions

View File

@@ -1804,7 +1804,8 @@ void cmVisualStudio10TargetGenerator::WriteClOptions(
}
if (this->MSTools) {
cmsys::RegularExpression clangToolset("v[0-9]+_clang_.*");
cmsys::RegularExpression clangToolset(
"(v[0-9]+_clang_.*|LLVM-vs[0-9]+.*)");
const char* toolset = this->GlobalGenerator->GetPlatformToolset();
if (toolset && clangToolset.find(toolset)) {
this->WriteString("<ObjectFileName>"