summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionDAGChecker.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-19 10:15:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-19 13:58:12 (GMT)
commit95d3598e0441bd9f276be1d6b4054442aad16608 (patch)
tree10068488142ed0961215408bd8bea82c92542421 /Source/cmGeneratorExpressionDAGChecker.h
parentac000e29da89eec74fc106fc41c48a098f8ff971 (diff)
downloadCMake-95d3598e0441bd9f276be1d6b4054442aad16608.zip
CMake-95d3598e0441bd9f276be1d6b4054442aad16608.tar.gz
CMake-95d3598e0441bd9f276be1d6b4054442aad16608.tar.bz2
cmGeneratorExpressionDAGChecker: Avoid const_cast
Make a member mutable to avoid casting away const of a whole object.
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.h')
-rw-r--r--Source/cmGeneratorExpressionDAGChecker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.h b/Source/cmGeneratorExpressionDAGChecker.h
index e1fba5e..6d7d6ef 100644
--- a/Source/cmGeneratorExpressionDAGChecker.h
+++ b/Source/cmGeneratorExpressionDAGChecker.h
@@ -88,7 +88,7 @@ private:
const cmGeneratorExpressionDAGChecker* const Parent;
cmGeneratorTarget const* Target;
const std::string Property;
- std::map<cmGeneratorTarget const*, std::set<std::string>> Seen;
+ mutable std::map<cmGeneratorTarget const*, std::set<std::string>> Seen;
const GeneratorExpressionContent* const Content;
const cmListFileBacktrace Backtrace;
Result CheckResult;