summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-29 14:15:32 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-29 14:15:32 (GMT)
commit44f696f8dae9a30cb69590954705511631153473 (patch)
tree18af46ac3452476e01890cd4811b02f518d18bba /Source
parent1f71ee64ff31e640c734dc305d5baadefe9cebd4 (diff)
downloadCMake-44f696f8dae9a30cb69590954705511631153473.zip
CMake-44f696f8dae9a30cb69590954705511631153473.tar.gz
CMake-44f696f8dae9a30cb69590954705511631153473.tar.bz2
BUG: cmComputeLinkInformation::CheckImplicitDirItem needs to extract the filename portion of the link item to test against the library regex.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmComputeLinkInformation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 1899bd2..cd671d9 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1074,7 +1074,8 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item)
// Only apply the policy below if the library file is one that can
// be found by the linker.
- if(!this->ExtractAnyLibraryName.find(item))
+ std::string file = cmSystemTools::GetFilenameName(item);
+ if(!this->ExtractAnyLibraryName.find(file))
{
return false;
}
@@ -1085,7 +1086,6 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item)
// directory then just report the file name without the directory
// portion. This will allow the system linker to locate the proper
// library for the architecture at link time.
- std::string file = cmSystemTools::GetFilenameName(item);
this->AddUserItem(file);
return true;
}