diff options
author | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2001-07-30 11:18:38 (GMT) |
---|---|---|
committer | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2001-07-30 11:18:38 (GMT) |
commit | b24861d895f96040e35c94944cc3866e78e7781c (patch) | |
tree | 1b16733e3f9ebff6730d7bf5fba3a0ae40f7cc04 /Source/cmMakefile.h | |
parent | 8bad4180c7908426b50809f5ba5948e408330cee (diff) | |
download | CMake-b24861d895f96040e35c94944cc3866e78e7781c.zip CMake-b24861d895f96040e35c94944cc3866e78e7781c.tar.gz CMake-b24861d895f96040e35c94944cc3866e78e7781c.tar.bz2 |
Removed the Uniquification of the include and link directory list in FinalPass,
and achieved the same effect by makein m_LinkDirectores and m_IncludeDirectories
a set rather than vector
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index e44d73d..db7caf1 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -383,11 +383,11 @@ public: /** * Get a list of include directories in the build. */ - std::vector<std::string>& GetIncludeDirectories() + std::set<std::string>& GetIncludeDirectories() { return m_IncludeDirectories; } - const std::vector<std::string>& GetIncludeDirectories() const + const std::set<std::string>& GetIncludeDirectories() const { return m_IncludeDirectories; } @@ -395,7 +395,7 @@ public: /** * Get a list of link directories in the build. */ - std::vector<std::string>& GetLinkDirectories() + std::set<std::string>& GetLinkDirectories() { return m_LinkDirectories; } @@ -481,11 +481,6 @@ public: */ void ExpandVariables(); - /** - * Strip Duplicate directories from Library and Include paths - */ - void cmMakefile::StripDuplicateDirectories(); - /** Recursivly read and create a cmMakefile object for * all CMakeLists.txt files in the GetSubDirectories list. * Once the file is found, it ReadListFile is called on @@ -528,8 +523,8 @@ protected: SourceMap m_Sources; std::vector<std::string> m_SubDirectories; // list of sub directories - std::vector<std::string> m_IncludeDirectories; - std::vector<std::string> m_LinkDirectories; + std::set<std::string> m_IncludeDirectories; + std::set<std::string> m_LinkDirectories; std::vector<std::string> m_ListFiles; // list of command files loaded @@ -560,6 +555,7 @@ 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; |