summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-29 21:21:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-31 13:52:11 (GMT)
commitc4373b33b2ad7c6db3b000b0615ed381f05ac5f3 (patch)
tree544c5d58dd31df7f06e85f6d060b87146bfbf5a5 /Source/cmGeneratorExpression.h
parentcfb666133378d723a046ab7a4463a590deaa7aee (diff)
downloadCMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.zip
CMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.tar.gz
CMake-c4373b33b2ad7c6db3b000b0615ed381f05ac5f3.tar.bz2
cmTarget: Make GetProperty() const.
This has follow-on effects for other methods and classes. Further work on making the use of const cmTarget pointers common can be done, particularly with a view to generate-time methods.
Diffstat (limited to 'Source/cmGeneratorExpression.h')
-rw-r--r--Source/cmGeneratorExpression.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmGeneratorExpression.h b/Source/cmGeneratorExpression.h
index bc0f6c2..4992e93 100644
--- a/Source/cmGeneratorExpression.h
+++ b/Source/cmGeneratorExpression.h
@@ -80,12 +80,12 @@ class cmCompiledGeneratorExpression
public:
const char* Evaluate(cmMakefile* mf, const char* config,
bool quiet = false,
- cmTarget *headTarget = 0,
- cmTarget *currentTarget = 0,
+ cmTarget const* headTarget = 0,
+ cmTarget const* currentTarget = 0,
cmGeneratorExpressionDAGChecker *dagChecker = 0) const;
const char* Evaluate(cmMakefile* mf, const char* config,
bool quiet,
- cmTarget *headTarget,
+ cmTarget const* headTarget,
cmGeneratorExpressionDAGChecker *dagChecker) const;
/** Get set of targets found during evaluations. */
@@ -95,7 +95,7 @@ public:
std::set<cmStdString> const& GetSeenTargetProperties() const
{ return this->SeenTargetProperties; }
- std::set<cmTarget*> const& GetAllTargetsSeen() const
+ std::set<cmTarget const*> const& GetAllTargetsSeen() const
{ return this->AllTargetsSeen; }
~cmCompiledGeneratorExpression();
@@ -129,7 +129,7 @@ private:
bool NeedsEvaluation;
mutable std::set<cmTarget*> DependTargets;
- mutable std::set<cmTarget*> AllTargetsSeen;
+ mutable std::set<cmTarget const*> AllTargetsSeen;
mutable std::set<cmStdString> SeenTargetProperties;
mutable std::string Output;
mutable bool HadContextSensitiveCondition;