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/cmUnixMakefileGenerator.cxx | |
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/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 2599068..966db4a 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -65,7 +65,7 @@ void cmUnixMakefileGenerator::GenerateMakefile() m_LibraryOutputPath += "/"; } cmSystemTools::MakeDirectory(m_LibraryOutputPath.c_str()); - m_Makefile->GetLinkDirectories().insert(m_LibraryOutputPath); + m_Makefile->AddLinkDirectory(m_LibraryOutputPath.c_str()); } if (m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH")) { @@ -76,7 +76,7 @@ void cmUnixMakefileGenerator::GenerateMakefile() m_ExecutableOutputPath += "/"; } cmSystemTools::MakeDirectory(m_ExecutableOutputPath.c_str()); - m_Makefile->GetLinkDirectories().insert(m_ExecutableOutputPath); + m_Makefile->AddLinkDirectory(m_ExecutableOutputPath.c_str()); } if(m_CacheOnly) @@ -362,8 +362,8 @@ void cmUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, // collect all the flags needed for linking libraries std::string linkLibs; - std::set<std::string>& libdirs = m_Makefile->GetLinkDirectories(); - for(std::set<std::string>::iterator libDir = libdirs.begin(); + std::vector<std::string>& libdirs = m_Makefile->GetLinkDirectories(); + for(std::vector<std::string>::iterator libDir = libdirs.begin(); libDir != libdirs.end(); ++libDir) { std::string libpath = cmSystemTools::EscapeSpaces(libDir->c_str()); @@ -653,8 +653,8 @@ void cmUnixMakefileGenerator::OutputMakeFlags(std::ostream& fout) { // Output Include paths fout << "INCLUDE_FLAGS = "; - std::set<std::string>& includes = m_Makefile->GetIncludeDirectories(); - std::set<std::string>::iterator i; + std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories(); + std::vector<std::string>::iterator i; fout << "-I" << m_Makefile->GetStartDirectory() << " "; for(i = includes.begin(); i != includes.end(); ++i) { |