BUG: cmComputeLinkInformation::CheckImplicitDirItem needs to extract the filename portion of the link item to test against the library regex.
This commit is contained in:
parent
1f71ee64ff
commit
44f696f8da
@ -1074,7 +1074,8 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item)
|
|||||||
|
|
||||||
// Only apply the policy below if the library file is one that can
|
// Only apply the policy below if the library file is one that can
|
||||||
// be found by the linker.
|
// be found by the linker.
|
||||||
if(!this->ExtractAnyLibraryName.find(item))
|
std::string file = cmSystemTools::GetFilenameName(item);
|
||||||
|
if(!this->ExtractAnyLibraryName.find(file))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1085,7 +1086,6 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item)
|
|||||||
// directory then just report the file name without the directory
|
// directory then just report the file name without the directory
|
||||||
// portion. This will allow the system linker to locate the proper
|
// portion. This will allow the system linker to locate the proper
|
||||||
// library for the architecture at link time.
|
// library for the architecture at link time.
|
||||||
std::string file = cmSystemTools::GetFilenameName(item);
|
|
||||||
this->AddUserItem(file);
|
this->AddUserItem(file);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user