mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 00:29:55 -06:00
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:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user