summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-09 12:37:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-09 12:37:45 (GMT)
commit59756a43f4d6d5ad3651d884cf10d7b7e7352f95 (patch)
tree3537d1acee98821a1c250c95e7e4fb4fef755331
parent1dbcfd2a982f4fc22eecdcb53e44988b14a0ffec (diff)
downloadCMake-59756a43f4d6d5ad3651d884cf10d7b7e7352f95.zip
CMake-59756a43f4d6d5ad3651d884cf10d7b7e7352f95.tar.gz
CMake-59756a43f4d6d5ad3651d884cf10d7b7e7352f95.tar.bz2
BUG: add full path libraries to the depend information
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 1be3a9f..de940be 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1853,6 +1853,19 @@ void cmLocalUnixMakefileGenerator::OutputLibDepend(std::ostream& fout,
}
fout << this->ConvertToRelativeOutputPath(libpath.c_str()) << " ";
}
+ else
+ {
+ if(cmSystemTools::FileExists(name))
+ {
+ std::string nameStr = name;
+ // if it starts with / or \ or ?:/ or ?:\ then it must be a full path
+ if( (nameStr.size() && (nameStr[0] == '/' || nameStr[0] == '\\')) ||
+ ((nameStr.size() > 3) && (nameStr[1] == ':') && (nameStr[2] == '/' || nameStr[2] == '\\')))
+ {
+ fout << this->ConvertToRelativeOutputPath(name) << " ";
+ }
+ }
+ }
}