summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-08-02 15:06:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-08-02 15:06:16 (GMT)
commit3b0632ae75c18be4ef2457b5016d794a65e9e48d (patch)
tree91435f62a5d1317294d15caaa3e63347278edc51 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent8d62804b3aac75f4d79a839ad6ded9a020f8a65e (diff)
downloadCMake-3b0632ae75c18be4ef2457b5016d794a65e9e48d.zip
CMake-3b0632ae75c18be4ef2457b5016d794a65e9e48d.tar.gz
CMake-3b0632ae75c18be4ef2457b5016d794a65e9e48d.tar.bz2
FIX: fix bad depend info and COMPILE_FLAGS problem and remove extra cerr calls
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 6684be1..596ce97 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -349,10 +349,16 @@ void cmGlobalUnixMakefileGenerator3
for (cmTargets::iterator l = lg->GetMakefile()->GetTargets().begin();
l != lg->GetMakefile()->GetTargets().end(); l++)
{
- std::string tname = lg->GetRelativeTargetDirectory(l->second);
- tname += "/DependInfo.cmake";
- cmSystemTools::ConvertToUnixSlashes(tname);
- cmakefileStream << " \"" << tname.c_str() << "\"\n";
+ if((l->second.GetType() == cmTarget::EXECUTABLE) ||
+ (l->second.GetType() == cmTarget::STATIC_LIBRARY) ||
+ (l->second.GetType() == cmTarget::SHARED_LIBRARY) ||
+ (l->second.GetType() == cmTarget::MODULE_LIBRARY) )
+ {
+ std::string tname = lg->GetRelativeTargetDirectory(l->second);
+ tname += "/DependInfo.cmake";
+ cmSystemTools::ConvertToUnixSlashes(tname);
+ cmakefileStream << " \"" << tname.c_str() << "\"\n";
+ }
}
}
cmakefileStream << " )\n";