diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 21:43:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 21:43:21 (GMT) |
commit | 9ffabcbb3fe14dd68f5998945e20078538df76bb (patch) | |
tree | ded80ab6eefb4892103810789b2f0cd2707e8b64 /Source/cmOrderLinkDirectories.cxx | |
parent | 9b42fff02f1b62f2ba060e819863b672736a393b (diff) | |
download | CMake-9ffabcbb3fe14dd68f5998945e20078538df76bb.zip CMake-9ffabcbb3fe14dd68f5998945e20078538df76bb.tar.gz CMake-9ffabcbb3fe14dd68f5998945e20078538df76bb.tar.bz2 |
ENH: fix compile error on mac
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r-- | Source/cmOrderLinkDirectories.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx index c04400b..744c1fe 100644 --- a/Source/cmOrderLinkDirectories.cxx +++ b/Source/cmOrderLinkDirectories.cxx @@ -465,8 +465,9 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() #endif // check to see if the file is a full path or just contains // a / in it and is a path to something - if(cmSystemTools::FileIsFullPath(this->RawLinkItems[i].c_str()) - || this->RawLinkItems[i].find("/") != cmStdString.npos) + cmStdString& item = this->RawLinkItems[i]; + if(cmSystemTools::FileIsFullPath(item.c_str()) + || item.find("/") != item.npos) { if(cmSystemTools::FileIsDirectory(this->RawLinkItems[i].c_str())) { |