summaryrefslogtreecommitdiff
path: root/Source/cmForEachCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-18 13:50:01 -0400
committerKen Martin <ken.martin@kitware.com>2006-05-18 13:50:01 -0400
commit29a03db7ce5150c30610d4a9b0e7c6d38f923f35 (patch)
tree283a237abcb57f0a2af8b3a4f8f4c0019f190188 /Source/cmForEachCommand.h
parent095e975c812c7962fa865f04444ac489f1ee8643 (diff)
downloadcmake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.tar.gz
ENH: allow loose loop constructs
Diffstat (limited to 'Source/cmForEachCommand.h')
-rw-r--r--Source/cmForEachCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h
index 5a303596a1..04843c4789 100644
--- a/Source/cmForEachCommand.h
+++ b/Source/cmForEachCommand.h
@@ -29,7 +29,7 @@
class cmForEachFunctionBlocker : public cmFunctionBlocker
{
public:
- cmForEachFunctionBlocker() {this->Executing = false;}
+ cmForEachFunctionBlocker() {this->Executing = false; Depth = 0;}
virtual ~cmForEachFunctionBlocker() {}
virtual bool IsFunctionBlocked(const cmListFileFunction& lff,
cmMakefile &mf);
@@ -39,6 +39,8 @@ public:
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
bool Executing;
+private:
+ int Depth;
};
/** \class cmForEachCommand