summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-30 22:04:48 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-30 22:04:48 (GMT)
commit3a5bdaa21319665405104964562dd471aee7cb48 (patch)
tree935e1dea807312fc591a429f340dc3efe744c944 /Source/cmComputeLinkInformation.cxx
parent9631c499dc31ea1aba70201afc1a565b84c33620 (diff)
downloadCMake-3a5bdaa21319665405104964562dd471aee7cb48.zip
CMake-3a5bdaa21319665405104964562dd471aee7cb48.tar.gz
CMake-3a5bdaa21319665405104964562dd471aee7cb48.tar.bz2
ENH: When preserving potentially static portions of original user link lines recognize shared library names by their extension and skip them.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 5e10537..b133e35 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -511,6 +511,7 @@ bool cmComputeLinkInformation::Compute()
// Compute the ordered link line items.
cmComputeLinkDepends cld(this->Target, this->Config);
cld.SetOldLinkDirMode(this->OldLinkDirMode);
+ cld.SetSharedRegex(this->SharedRegexString);
cmComputeLinkDepends::EntryVector const& linkEntries = cld.Compute();
// Add the link line items.
@@ -864,7 +865,9 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
if(!this->SharedLinkExtensions.empty())
{
std::string reg_shared = reg;
- reg_shared += this->CreateExtensionRegex(this->SharedLinkExtensions);
+ this->SharedRegexString =
+ this->CreateExtensionRegex(this->SharedLinkExtensions);
+ reg_shared += this->SharedRegexString;
#ifdef CM_COMPUTE_LINK_INFO_DEBUG
fprintf(stderr, "shared regex [%s]\n", reg_shared.c_str());
#endif