summaryrefslogtreecommitdiff
path: root/Source/cmCustomCommandGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-08 14:46:48 -0400
committerBrad King <brad.king@kitware.com>2017-08-08 14:59:11 -0400
commit52527468dc9e1e35617565f1736b6ee945c4a23b (patch)
tree5d1b2725be74c3e61eeb38a88f9ea51283fbc475 /Source/cmCustomCommandGenerator.h
parentbfdfc6db9d51ac874ea12caa89c41a3211c917c2 (diff)
downloadcmake-52527468dc9e1e35617565f1736b6ee945c4a23b.tar.gz
cmCustomCommandGenerator: Avoid mutable state
Expand generator expressions of DEPENDS in the constructor instead of on-demand.
Diffstat (limited to 'Source/cmCustomCommandGenerator.h')
-rw-r--r--Source/cmCustomCommandGenerator.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCustomCommandGenerator.h b/Source/cmCustomCommandGenerator.h
index 0a2adb524d..ea33b51377 100644
--- a/Source/cmCustomCommandGenerator.h
+++ b/Source/cmCustomCommandGenerator.h
@@ -21,9 +21,8 @@ class cmCustomCommandGenerator
bool OldStyle;
bool MakeVars;
cmGeneratorExpression* GE;
- mutable bool DependsDone;
- mutable std::vector<std::string> Depends;
cmCustomCommandLines CommandLines;
+ std::vector<std::string> Depends;
const char* GetCrossCompilingEmulator(unsigned int c) const;
const char* GetArgv0Location(unsigned int c) const;