diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-09-17 17:21:09 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-09-28 13:56:53 (GMT) |
commit | dd0f304613b1661754d9cccf5829087a8bb19a12 (patch) | |
tree | 852c778a4b92ca5b2a58564fc59a7314a3a6d654 /Source/cmMakefile.h | |
parent | b515af782bccf147e8bd62444c9f1808668f12ac (diff) | |
download | CMake-dd0f304613b1661754d9cccf5829087a8bb19a12.zip CMake-dd0f304613b1661754d9cccf5829087a8bb19a12.tar.gz CMake-dd0f304613b1661754d9cccf5829087a8bb19a12.tar.bz2 |
Objective C/C++: Add compiler standard detection
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index db37477..1dc83b4 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -1135,22 +1135,28 @@ private: bool MightHaveCustomCommand(const std::string& name) const; bool AddRequiredTargetCFeature(cmTarget* target, const std::string& feature, + std::string const& lang, std::string* error = nullptr) const; bool AddRequiredTargetCxxFeature(cmTarget* target, const std::string& feature, + std::string const& lang, std::string* error = nullptr) const; - void CheckNeededCLanguage(const std::string& feature, bool& needC90, + void CheckNeededCLanguage(const std::string& feature, + std::string const& lang, bool& needC90, bool& needC99, bool& needC11) const; - void CheckNeededCxxLanguage(const std::string& feature, bool& needCxx98, + void CheckNeededCxxLanguage(const std::string& feature, + std::string const& lang, bool& needCxx98, bool& needCxx11, bool& needCxx14, bool& needCxx17, bool& needCxx20) const; bool HaveCStandardAvailable(cmTarget const* target, - const std::string& feature) const; + const std::string& feature, + std::string const& lang) const; bool HaveCxxStandardAvailable(cmTarget const* target, - const std::string& feature) const; + const std::string& feature, + std::string const& lang) const; void CheckForUnusedVariables() const; |