summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 194729e..39c937a 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -216,7 +216,7 @@ public:
/**
* Add a subdirectory to the build.
*/
- void AddSubDirectory(const char*, bool includeTopLevel=true);
+ void AddSubDirectory(const char*, bool includeTopLevel=true, bool preorder = false);
/**
* Add an include directory to the build.
@@ -276,16 +276,6 @@ public:
const std::vector<std::string> &srcs);
/**
- * Add a class/source file to the build.
- */
- //void AddSource(cmSourceFile& ,const char *srcListName);
-
- /**
- * Remove a class/source file from the build.
- */
- //void RemoveSource(cmSourceFile& ,const char *srcListName);
-
- /**
* Add a source group for consideration when adding a new source.
*/
void AddSourceGroup(const char* name, const char* regex=0);
@@ -648,6 +638,9 @@ public:
* Return a location of a file in cmake or custom modules directory
*/
std::string GetModulesFile(const char* name);
+
+ ///! Return true if the directory is preorder.
+ bool IsDirectoryPreOrder(const char* dir);
protected:
// add link libraries and directories to the target
@@ -720,6 +713,7 @@ private:
typedef std::map<cmStdString, cmStdString> StringStringMap;
StringStringMap m_MacrosMap;
+ std::map<cmStdString, bool> m_SubDirectoryOrder;
// used in AddDefinition for performance improvement
DefinitionMap::key_type m_TemporaryDefinitionKey;