ENH: do not add anything from the current directory to the depends

This commit is contained in:
Bill Hoffman 2001-06-15 17:57:47 -04:00
parent 80aad5e3b2
commit d7fd7a8c47
1 changed files with 2 additions and 4 deletions

View File

@ -527,14 +527,12 @@ void cmUnixMakefileGenerator::OutputDependencies(std::ostream& fout)
emitted.clear(); emitted.clear();
for(lib2 = libs.begin(); lib2 != libs.end(); ++lib2) for(lib2 = libs.begin(); lib2 != libs.end(); ++lib2)
{ {
// loop over the list of directories that the libraries might
// be in, looking for an ADD_LIBRARY(lib...) line. This would
// be stored in the cache
if( ! emitted.insert(lib2->first).second ) continue; if( ! emitted.insert(lib2->first).second ) continue;
const char* cacheValue const char* cacheValue
= cmCacheManager::GetInstance()->GetCacheValue(lib2->first.c_str()); = cmCacheManager::GetInstance()->GetCacheValue(lib2->first.c_str());
if(cacheValue) if(cacheValue
&& (strcmp(m_Makefile->GetCurrentOutputDirectory(), cacheValue) != 0))
{ {
std::string libpath = cacheValue; std::string libpath = cacheValue;
if(m_LibraryOutputPath.size()) if(m_LibraryOutputPath.size())