diff options
author | Brad King <brad.king@kitware.com> | 2001-07-30 15:34:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-07-30 15:34:03 (GMT) |
commit | ddec29c52d790333fd83b7826d807b73f4f1e36c (patch) | |
tree | 1351c0489fcbb47a814d996a808b6360c7abfc37 /Source/cmMakefile.h | |
parent | b24861d895f96040e35c94944cc3866e78e7781c (diff) | |
download | CMake-ddec29c52d790333fd83b7826d807b73f4f1e36c.zip CMake-ddec29c52d790333fd83b7826d807b73f4f1e36c.tar.gz CMake-ddec29c52d790333fd83b7826d807b73f4f1e36c.tar.bz2 |
BUG: Changed include and link directory paths in cmMakefile back to std::vector because there is an order dependency. Only cmMakefile::AddIncludeDirectory and cmMakefile::AddLinkDirectory should be called to add directories to the paths. They make sure the paths are unique as they are inserted.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index db7caf1..88acddb 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -383,11 +383,11 @@ public: /** * Get a list of include directories in the build. */ - std::set<std::string>& GetIncludeDirectories() + std::vector<std::string>& GetIncludeDirectories() { return m_IncludeDirectories; } - const std::set<std::string>& GetIncludeDirectories() const + const std::vector<std::string>& GetIncludeDirectories() const { return m_IncludeDirectories; } @@ -395,7 +395,7 @@ public: /** * Get a list of link directories in the build. */ - std::set<std::string>& GetLinkDirectories() + std::vector<std::string>& GetLinkDirectories() { return m_LinkDirectories; } @@ -523,8 +523,12 @@ protected: SourceMap m_Sources; std::vector<std::string> m_SubDirectories; // list of sub directories - std::set<std::string> m_IncludeDirectories; - std::set<std::string> m_LinkDirectories; + + // The include and link-library paths. These may have order + // dependency, so they must be vectors (not set). + std::vector<std::string> m_IncludeDirectories; + std::vector<std::string> m_LinkDirectories; + std::vector<std::string> m_ListFiles; // list of command files loaded @@ -555,7 +559,6 @@ private: friend class cmMakeDepend; // make depend needs direct access // to the m_Sources array void PrintStringVector(const char* s, const std::vector<std::string>& v) const; - void PrintStringVector(const char* s, const std::set<std::string>& v) const; void AddDefaultCommands(); void AddDefaultDefinitions(); std::set<cmFunctionBlocker *> m_FunctionBlockers; |