summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorRoman Wüger <roman.wueger@gmx.at>2016-09-28 06:46:00 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-28 14:53:10 (GMT)
commit3f300b84f312c340e92ff010c18dfebbeb4edff4 (patch)
tree335342af592238a3dd7b2b43ec5af33820974d88 /Source/cmVisualStudio10TargetGenerator.cxx
parent1adcf4917e86fadcaf49ed5ad19d9f353febad53 (diff)
downloadCMake-3f300b84f312c340e92ff010c18dfebbeb4edff4.zip
CMake-3f300b84f312c340e92ff010c18dfebbeb4edff4.tar.gz
CMake-3f300b84f312c340e92ff010c18dfebbeb4edff4.tar.bz2
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.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 85084eb..7a9cd4b 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -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>"