summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.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/cmGlobalGenerator.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/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index f7b2e59..7bc389d 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -381,6 +381,8 @@ protected:
void SetLanguageEnabledFlag(const std::string& l, cmMakefile* mf);
void SetLanguageEnabledMaps(const std::string& l, cmMakefile* mf);
void FillExtensionToLanguageMap(const std::string& l, cmMakefile* mf);
+ virtual bool CheckLanguages(std::vector<std::string> const& languages,
+ cmMakefile* mf) const;
virtual void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
const char* envVar) const;