summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmComputeLinkInformation.cxx11
-rw-r--r--Source/cmDocumentVariables.cxx9
2 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 331e3fd..058a0d4 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -814,6 +814,17 @@ void cmComputeLinkInformation::ComputeItemParserInfo()
this->AddLinkExtension(i->c_str(), LinkUnknown);
}
}
+ if(const char* sharedSuffixes =
+ mf->GetDefinition("CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES"))
+ {
+ std::vector<std::string> sharedSuffixVec;
+ cmSystemTools::ExpandListArgument(sharedSuffixes, sharedSuffixVec);
+ for(std::vector<std::string>::iterator i = sharedSuffixVec.begin();
+ i != sharedSuffixVec.end(); ++i)
+ {
+ this->AddLinkExtension(i->c_str(), LinkShared);
+ }
+ }
// Compute a regex to match link extensions.
std::string libext = this->CreateExtensionRegex(this->LinkExtensions);
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx
index cf5337b..32c8d69 100644
--- a/Source/cmDocumentVariables.cxx
+++ b/Source/cmDocumentVariables.cxx
@@ -377,6 +377,15 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
"The suffix to use for the end of a static library, .lib on Windows.",
false,
"Variables that Provide Information");
+ cm->DefineProperty
+ ("CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES", cmProperty::VARIABLE,
+ "Additional suffixes for shared libraries.",
+ "Extensions for shared libraries other than that specified by "
+ "CMAKE_SHARED_LIBRARY_SUFFIX, if any. "
+ "CMake uses this to recognize external shared library files during "
+ "analysis of libraries linked by a target.",
+ false,
+ "Variables that Provide Information");
// Variables defined by cmake, that change the behavior