summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-04 22:38:20 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-04 22:45:30 (GMT)
commitda36e0638b1adfdbdb75fb0228268b30f5832544 (patch)
treeed03336d6fe0186b769ba057c40c70063f9c28b9 /Source
parentc1f1aedcee3e24f96ec129105ae0119f3201d1cc (diff)
downloadCMake-da36e0638b1adfdbdb75fb0228268b30f5832544.zip
CMake-da36e0638b1adfdbdb75fb0228268b30f5832544.tar.gz
CMake-da36e0638b1adfdbdb75fb0228268b30f5832544.tar.bz2
cmGeneratorTarget: Remove outdated const/mutable pair
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx4
-rw-r--r--Source/cmGeneratorTarget.h9
2 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 2454750..bbd5789 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -5025,7 +5025,7 @@ void cmGeneratorTarget::ComputeTargetManifest(const std::string& config) const
}
}
-bool cmGeneratorTarget::ComputeCompileFeatures(std::string const& config) const
+bool cmGeneratorTarget::ComputeCompileFeatures(std::string const& config)
{
// Compute the language standard based on the compile features.
cmStandardLevelResolver standardResolver(this->Makefile);
@@ -5063,7 +5063,7 @@ bool cmGeneratorTarget::ComputeCompileFeatures(std::string const& config) const
}
bool cmGeneratorTarget::ComputeCompileFeatures(
- std::string const& config, std::set<LanguagePair> const& languagePairs) const
+ std::string const& config, std::set<LanguagePair> const& languagePairs)
{
for (const auto& language : languagePairs) {
BTs<std::string> const* generatorTargetLanguageStandard =
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 72920d6..6bdb7ff 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -613,12 +613,11 @@ public:
/** Add the target output files to the global generator manifest. */
void ComputeTargetManifest(const std::string& config) const;
- bool ComputeCompileFeatures(std::string const& config) const;
+ bool ComputeCompileFeatures(std::string const& config);
using LanguagePair = std::pair<std::string, std::string>;
- bool ComputeCompileFeatures(
- std::string const& config,
- std::set<LanguagePair> const& languagePairs) const;
+ bool ComputeCompileFeatures(std::string const& config,
+ std::set<LanguagePair> const& languagePairs);
/**
* Trace through the source files in this target and add al source files
@@ -1241,7 +1240,7 @@ private:
bool GetRPATH(const std::string& config, const std::string& prop,
std::string& rpath) const;
- mutable std::map<std::string, BTs<std::string>> LanguageStandardMap;
+ std::map<std::string, BTs<std::string>> LanguageStandardMap;
cmValue GetPropertyWithPairedLanguageSupport(std::string const& lang,
const char* suffix) const;