diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-11 16:43:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-12 15:30:43 (GMT) |
commit | 2bead0eb1b605cc5d0db23d9af00087277157921 (patch) | |
tree | 13827e04732e818f9aa0f153a238b88d8f88a245 /Source/cmMakefile.cxx | |
parent | 62b19984039235d5325ee1ad6a7643a4ccd696a8 (diff) | |
download | CMake-2bead0eb1b605cc5d0db23d9af00087277157921.zip CMake-2bead0eb1b605cc5d0db23d9af00087277157921.tar.gz CMake-2bead0eb1b605cc5d0db23d9af00087277157921.tar.bz2 |
cmMakefile: Rename a method to what it really does.
The method does not test availability of compile features.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index b7e89b8..ab77e4a 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -5130,18 +5130,19 @@ CompileFeaturesAvailable(const std::string& lang, std::string *error) const } //---------------------------------------------------------------------------- -bool cmMakefile::HaveFeatureAvailable(cmTarget const* target, +bool cmMakefile::HaveStandardAvailable(cmTarget const* target, std::string const& lang, const std::string& feature) const { return lang == "C" - ? this->HaveCFeatureAvailable(target, feature) - : this->HaveCxxFeatureAvailable(target, feature); + ? this->HaveCStandardAvailable(target, feature) + : this->HaveCxxStandardAvailable(target, feature); } //---------------------------------------------------------------------------- bool cmMakefile:: -HaveCFeatureAvailable(cmTarget const* target, const std::string& feature) const +HaveCStandardAvailable(cmTarget const* target, + const std::string& feature) const { bool needC90 = false; bool needC99 = false; @@ -5218,7 +5219,7 @@ bool cmMakefile::IsLaterStandard(std::string const& lang, } //---------------------------------------------------------------------------- -bool cmMakefile::HaveCxxFeatureAvailable(cmTarget const* target, +bool cmMakefile::HaveCxxStandardAvailable(cmTarget const* target, const std::string& feature) const { bool needCxx98 = false; |