summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-11-23 21:11:43 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-11-23 21:11:43 (GMT)
commit0a5600af2d8467f83eb2f5559c10e5d7776e2ba8 (patch)
tree3c20b5264d38648623b2a35ce00aef56ada9ce10
parentfcea494787f9a001fef06cc4710dd24c233c7980 (diff)
parent5fe3ac86ee1702d957621c2054507eed2c393c6f (diff)
downloadCMake-0a5600af2d8467f83eb2f5559c10e5d7776e2ba8.zip
CMake-0a5600af2d8467f83eb2f5559c10e5d7776e2ba8.tar.gz
CMake-0a5600af2d8467f83eb2f5559c10e5d7776e2ba8.tar.bz2
Merge topic 'link-library-parse-regex'
5fe3ac8 Prefer non-empty prefixes when matching lib names (#11468)
-rw-r--r--Source/cmComputeLinkInformation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 1cabed2..d53200c 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -923,7 +923,7 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
//----------------------------------------------------------------------------
void cmComputeLinkInformation::AddLinkPrefix(const char* p)
{
- if(p)
+ if(p && *p)
{
this->LinkPrefixes.insert(p);
}