diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-15 21:57:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-15 21:57:47 (GMT) |
commit | d7fd7a8c473eeb2588d34a50bf881011dd496a4f (patch) | |
tree | 6921783d50f2c8204d2ee3d6e7cea9fb1671a2e8 /Source | |
parent | 80aad5e3b2e55f8dc770f635b691bbc940feb543 (diff) | |
download | CMake-d7fd7a8c473eeb2588d34a50bf881011dd496a4f.zip CMake-d7fd7a8c473eeb2588d34a50bf881011dd496a4f.tar.gz CMake-d7fd7a8c473eeb2588d34a50bf881011dd496a4f.tar.bz2 |
ENH: do not add anything from the current directory to the depends
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index a8561c0..ff20985 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -527,14 +527,12 @@ void cmUnixMakefileGenerator::OutputDependencies(std::ostream& fout) emitted.clear(); 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; const char* cacheValue = cmCacheManager::GetInstance()->GetCacheValue(lib2->first.c_str()); - if(cacheValue) + if(cacheValue + && (strcmp(m_Makefile->GetCurrentOutputDirectory(), cacheValue) != 0)) { std::string libpath = cacheValue; if(m_LibraryOutputPath.size()) |