summaryrefslogtreecommitdiff
path: root/Source/cmWhileCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmWhileCommand.h')
-rw-r--r--Source/cmWhileCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmWhileCommand.h b/Source/cmWhileCommand.h
index 10c261ca85..e1f44ebd23 100644
--- a/Source/cmWhileCommand.h
+++ b/Source/cmWhileCommand.h
@@ -29,7 +29,7 @@
class cmWhileFunctionBlocker : public cmFunctionBlocker
{
public:
- cmWhileFunctionBlocker() {Executing = false;}
+ cmWhileFunctionBlocker() {Executing = false; Depth=0;}
virtual ~cmWhileFunctionBlocker() {}
virtual bool IsFunctionBlocked(const cmListFileFunction& lff,
cmMakefile &mf);
@@ -39,6 +39,8 @@ public:
std::vector<cmListFileArgument> Args;
std::vector<cmListFileFunction> Functions;
bool Executing;
+private:
+ int Depth;
};
/** \class cmWhileCommand