summaryrefslogtreecommitdiffstats
path: root/Source/cmForEachCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-18 17:50:01 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-18 17:50:01 (GMT)
commit29a03db7ce5150c30610d4a9b0e7c6d38f923f35 (patch)
tree283a237abcb57f0a2af8b3a4f8f4c0019f190188 /Source/cmForEachCommand.h
parent095e975c812c7962fa865f04444ac489f1ee8643 (diff)
downloadCMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.zip
CMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.tar.gz
CMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.tar.bz2
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 5a30359..04843c4 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