Merge topic 'link-library-parse-regex'

5fe3ac8 Prefer non-empty prefixes when matching lib names (#11468)
This commit is contained in:
David Cole 2010-11-23 16:11:43 -05:00 committed by CMake Topic Stage
commit 0a5600af2d
1 changed files with 1 additions and 1 deletions

View File

@ -923,7 +923,7 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmComputeLinkInformation::AddLinkPrefix(const char* p) void cmComputeLinkInformation::AddLinkPrefix(const char* p)
{ {
if(p) if(p && *p)
{ {
this->LinkPrefixes.insert(p); this->LinkPrefixes.insert(p);
} }