summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-03 14:26:36 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-03 14:26:36 (GMT)
commit59adb4eabe6881cd29bc2470ad63b54d8527039e (patch)
tree3b2fde18743775a83bd5d9d94eaf0daf664a2a34 /Source
parentc06828a4a0e419b6d3ab5bd0f885ce507ee382b7 (diff)
downloadCMake-59adb4eabe6881cd29bc2470ad63b54d8527039e.zip
CMake-59adb4eabe6881cd29bc2470ad63b54d8527039e.tar.gz
CMake-59adb4eabe6881cd29bc2470ad63b54d8527039e.tar.bz2
ENH: Fix ADD_DEPENDENCIES on Unix makefiles and fix SimpleInstall test not to link the module
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx11
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";