summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-06-12 14:59:40 (GMT)
committerBrad King <brad.king@kitware.com>2001-06-12 14:59:40 (GMT)
commit5f12ae0c62634f641496b4ed1b56ac8aed030807 (patch)
tree2b6a008ceaa795b2755d6f72816f49e9d4f33215 /Source/cmUnixMakefileGenerator.cxx
parent46aa1cb9c4e85564435ae78ff1b0c239301a717a (diff)
downloadCMake-5f12ae0c62634f641496b4ed1b56ac8aed030807.zip
CMake-5f12ae0c62634f641496b4ed1b56ac8aed030807.tar.gz
CMake-5f12ae0c62634f641496b4ed1b56ac8aed030807.tar.bz2
BUG: Dependency hints must be removed by the makefile generator before adding the dependencies generated by cmMakeDepend.
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 939eef9..d57bbb0 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -93,6 +93,11 @@ void cmUnixMakefileGenerator::ProcessDepends(const cmMakeDepend &md)
// get the depends
const cmDependInformation *info =
md.GetDependInformationForSourceFile(*i);
+
+ // Delete any hints from the source file's dependencies.
+ i->GetDepends().erase(i->GetDepends().begin(), i->GetDepends().end());
+
+ // Now add the real dependencies for the file.
if (info)
{
for( cmDependInformation::IndexSet::const_iterator indx =