summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-07-29 14:51:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-07-29 14:51:46 (GMT)
commitd652aed13a2096005686c472f2a2fdbf6c0a02d5 (patch)
tree597731d88b1955b3f00efc2888f3590f6aa8babe /Source/cmComputeLinkInformation.cxx
parent1a08c9aa5e57d596955410076186eec564d91aac (diff)
downloadCMake-d652aed13a2096005686c472f2a2fdbf6c0a02d5.zip
CMake-d652aed13a2096005686c472f2a2fdbf6c0a02d5.tar.gz
CMake-d652aed13a2096005686c472f2a2fdbf6c0a02d5.tar.bz2
ENH: do not depend on files that do not exist
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index af4b141..0893e07 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1362,6 +1362,14 @@ void cmComputeLinkInformation::AddSharedLibNoSOName(std::string const& item)
void cmComputeLinkInformation::HandleBadFullItem(std::string const& item,
std::string const& file)
{
+ // Do not depend on things that do not exist.
+ std::vector<std::string>::iterator i =
+ std::find(this->Depends.begin(), this->Depends.end(), item);
+ if(i != this->Depends.end())
+ {
+ this->Depends.erase(i);
+ }
+
// Tell the linker to search for the item and provide the proper
// path for it. Do not contribute to any CMP0003 warning (do not
// put in OldLinkDirItems or OldUserFlagItems).