diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-23 16:52:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-23 16:52:48 (GMT) |
commit | 8b0b749a11138107189f9264494f828778c0cf8b (patch) | |
tree | 08419721f7f8169515c3ebf1bb7cae6179c935e8 /Source/cmMakefile.h | |
parent | eae3d4cf0679212099204db7dc40514a28b1c493 (diff) | |
download | CMake-8b0b749a11138107189f9264494f828778c0cf8b.zip CMake-8b0b749a11138107189f9264494f828778c0cf8b.tar.gz CMake-8b0b749a11138107189f9264494f828778c0cf8b.tar.bz2 |
ENH: add SUBDIR PREORDER and fix clean for non-relative paths
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 16 |
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; |