summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-24 13:21:44 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-24 13:21:44 (GMT)
commitbe5215c4ba85942a22143894048a4f160b65a87a (patch)
tree04ae1ba26bdb177bcf68db8fc1fbf4d5d38563ff /Source
parent6bd776eba6221d9ef68b63d1c17a988145f31fc1 (diff)
parent6120fca8e229da08fae1d58017962491fb6e03f3 (diff)
downloadCMake-be5215c4ba85942a22143894048a4f160b65a87a.zip
CMake-be5215c4ba85942a22143894048a4f160b65a87a.tar.gz
CMake-be5215c4ba85942a22143894048a4f160b65a87a.tar.bz2
Merge topic 'ninja-compiler-change'
6120fca8 Ninja: Prevent compilers to be silently modified
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 09ee128..50e1abb 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -540,6 +540,15 @@ void cmGlobalNinjaGenerator
cmSystemTools::Error("The Ninja generator does not support Fortran yet.");
}
this->cmGlobalGenerator::EnableLanguage(langs, makefile, optional);
+ for(std::vector<std::string>::const_iterator l = langs.begin();
+ l != langs.end(); ++l)
+ {
+ if(*l == "NONE")
+ {
+ continue;
+ }
+ this->ResolveLanguageCompiler(*l, makefile, optional);
+ }
}
bool cmGlobalNinjaGenerator::UsingMinGW = false;