summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-21 17:52:01 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-22 17:51:58 (GMT)
commitf0a23aa3dbbe2751bbb4969e1371380561b566ee (patch)
tree78b8a93723e83d5376661091ab9957eb6ee0e815 /Source/cmGlobalNinjaGenerator.h
parentf4475eb92beade22fca16f21b40df19b48c6559b (diff)
downloadCMake-f0a23aa3dbbe2751bbb4969e1371380561b566ee.zip
CMake-f0a23aa3dbbe2751bbb4969e1371380561b566ee.tar.gz
CMake-f0a23aa3dbbe2751bbb4969e1371380561b566ee.tar.bz2
Ninja: Refactor Fortran rejection logic
Delay rejection of Fortran until after we've determined the version of the `ninja` tool to be used. This will later allow us to enable Fortran support based on the version of ninja. While at it, make the rejection an immediate fatal error. Also provide a stack trace so readers know what code tried to enable Fortran.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 0201685..ac7a6b1 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -355,6 +355,8 @@ protected:
private:
std::string GetEditCacheCommand() const CM_OVERRIDE;
void FindMakeProgram(cmMakefile* mf) CM_OVERRIDE;
+ bool CheckLanguages(std::vector<std::string> const& languages,
+ cmMakefile* mf) const CM_OVERRIDE;
void OpenBuildFileStream();
void CloseBuildFileStream();