diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-26 20:22:53 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-26 20:22:53 (GMT) |
commit | 41e1270413b18272bc73a8b25150aad4c7913563 (patch) | |
tree | 97d507f6296c78e5aaf17e1858e610cf95c46ba7 /Source/cmMakefile.cxx | |
parent | 888e47ddb4215659e76673af4f18aba865ccc4b8 (diff) | |
download | CMake-41e1270413b18272bc73a8b25150aad4c7913563.zip CMake-41e1270413b18272bc73a8b25150aad4c7913563.tar.gz CMake-41e1270413b18272bc73a8b25150aad4c7913563.tar.bz2 |
support for debug and opt libraries
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 6446f98..a9a182d 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -127,7 +127,6 @@ void cmMakefile::Print() const this->PrintStringVector("m_MakeVerbatim ", m_MakeVerbatim); this->PrintStringVector("m_IncludeDirectories;", m_IncludeDirectories); this->PrintStringVector("m_LinkDirectories", m_LinkDirectories); - this->PrintStringVector("m_LinkLibraries", m_LinkLibraries); this->PrintStringVector("m_Utilities", m_Utilities); this->PrintStringVector("m_UtilityDirectories", m_UtilityDirectories); } @@ -335,9 +334,15 @@ void cmMakefile::AddUtilityDirectory(const char* dir) m_UtilityDirectories.push_back(dir); } +void cmMakefile::AddLinkLibrary(const char* lib, LinkLibraryType llt) +{ + m_LinkLibraries.push_back( + std::pair<std::string, LinkLibraryType>(lib,llt)); +} + void cmMakefile::AddLinkLibrary(const char* lib) { - m_LinkLibraries.push_back(lib); + this->AddLinkLibrary(lib,GENERAL); } void cmMakefile::AddLinkDirectory(const char* dir) @@ -483,11 +488,12 @@ void cmMakefile::ExpandVariables() { this->ExpandVariablesInString(*j); } - begin = m_LinkLibraries.begin(); - end = m_LinkLibraries.end(); - for(j = begin; j != end; ++j) + LinkLibraries::iterator j2, end2; + j2 = m_LinkLibraries.begin(); + end2 = m_LinkLibraries.end(); + for(; j2 != end2; ++j2) { - this->ExpandVariablesInString(*j); + this->ExpandVariablesInString(j2->first); } } |