summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-09-12 14:03:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-09-12 14:03:57 (GMT)
commit0406aace34da3208e22371e1393cfa38bd3b9632 (patch)
tree1020cc1c5eb4d06f873dbdf5d562316a6255ac49 /Source/cmMakefileTargetGenerator.cxx
parentf8211e5e4d686ae46a0f098027ffc20c7fdfea41 (diff)
downloadCMake-0406aace34da3208e22371e1393cfa38bd3b9632.zip
CMake-0406aace34da3208e22371e1393cfa38bd3b9632.tar.gz
CMake-0406aace34da3208e22371e1393cfa38bd3b9632.tar.bz2
ENH: fix for BUG: #739 again, makefiles did not depend on external full path libraries
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 84df4eb..958dd42 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -1113,7 +1113,7 @@ void cmMakefileTargetGenerator
// Don't emit the same library twice for this target.
if(emitted.insert(lib->first).second)
{
- // Depend only on other CMake targets.
+ // Depend on other CMake targets.
if(cmTarget* tgt =
this->GlobalGenerator->FindTarget(0, lib->first.c_str()))
{
@@ -1124,6 +1124,11 @@ void cmMakefileTargetGenerator
}
}
}
+ // depend on full path libs as well
+ else if(cmSystemTools::FileIsFullPath(lib->first.c_str()))
+ {
+ depends.push_back(lib->first.c_str());
+ }
}
}