summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-12-03 18:35:41 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-12-03 18:35:41 (GMT)
commitf4b1c3880be819ea1c996e2754cc231285c4a40e (patch)
treec5c880392b4c16e669a9df6814a0919226a5ab06 /Source/cmMakefile.h
parent257b775f70b98e2242f01a252e08a55cdac91993 (diff)
downloadCMake-f4b1c3880be819ea1c996e2754cc231285c4a40e.zip
CMake-f4b1c3880be819ea1c996e2754cc231285c4a40e.tar.gz
CMake-f4b1c3880be819ea1c996e2754cc231285c4a40e.tar.bz2
ENH: add functions and raise scope
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 7915f08..2d4e61f 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -737,6 +737,11 @@ public:
// Define the properties
static void DefineProperties(cmake *cm);
+ // push and pop variable scopes
+ void PushScope();
+ void PopScope();
+ void RaiseScope(const char *var);
+
protected:
// add link libraries and directories to the target
void AddGlobalLinkInformation(const char* name, cmTarget& target);
@@ -787,7 +792,7 @@ protected:
std::vector<cmSourceGroup> SourceGroups;
#endif
- DefinitionMap Definitions;
+ std::vector<DefinitionMap> DefinitionStack;
std::vector<cmCommand*> UsedCommands;
cmLocalGenerator* LocalGenerator;
bool IsFunctionBlocked(const cmListFileFunction& lff);