diff options
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 2dc584a..0350592 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -1603,7 +1603,16 @@ void cmLocalUnixMakefileGenerator::OutputDependLibs(std::ostream& fout) if(emitted.insert(*util).second) { // Output this dependency. - this->OutputExeDepend(fout, util->c_str()); + std::string utilType = *util + "_LIBRARY_TYPE"; + const char* libType = m_Makefile->GetDefinition(utilType.c_str()); + if ( libType ) + { + this->OutputLibDepend(fout, util->c_str()); + } + else + { + this->OutputExeDepend(fout, util->c_str()); + } } } fout << "\n"; |