diff options
author | Brad King <brad.king@kitware.com> | 2017-08-08 18:46:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-08 18:59:11 (GMT) |
commit | 52527468dc9e1e35617565f1736b6ee945c4a23b (patch) | |
tree | 5d1b2725be74c3e61eeb38a88f9ea51283fbc475 /Source/cmCustomCommandGenerator.h | |
parent | bfdfc6db9d51ac874ea12caa89c41a3211c917c2 (diff) | |
download | CMake-52527468dc9e1e35617565f1736b6ee945c4a23b.zip CMake-52527468dc9e1e35617565f1736b6ee945c4a23b.tar.gz CMake-52527468dc9e1e35617565f1736b6ee945c4a23b.tar.bz2 |
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCustomCommandGenerator.h b/Source/cmCustomCommandGenerator.h index 0a2adb5..ea33b51 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; |