ENH: fix compile error on mac

This commit is contained in:
Bill Hoffman 2006-11-29 16:43:21 -05:00
parent 9b42fff02f
commit 9ffabcbb3f

View File

@ -465,8 +465,9 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder()
#endif #endif
// check to see if the file is a full path or just contains // check to see if the file is a full path or just contains
// a / in it and is a path to something // a / in it and is a path to something
if(cmSystemTools::FileIsFullPath(this->RawLinkItems[i].c_str()) cmStdString& item = this->RawLinkItems[i];
|| this->RawLinkItems[i].find("/") != cmStdString.npos) if(cmSystemTools::FileIsFullPath(item.c_str())
|| item.find("/") != item.npos)
{ {
if(cmSystemTools::FileIsDirectory(this->RawLinkItems[i].c_str())) if(cmSystemTools::FileIsDirectory(this->RawLinkItems[i].c_str()))
{ {