diff options
author | Brad King <brad.king@kitware.com> | 2009-06-03 19:08:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-03 19:08:30 (GMT) |
commit | d2b108150f5549e7012609bc4a48f34a1b963654 (patch) | |
tree | 53918a1bf02a8951bf20a5d830965883785e1a84 /Source/cmComputeLinkInformation.cxx | |
parent | 1d3320f1268bc147d32368489c9ee5cc22047dec (diff) | |
download | CMake-d2b108150f5549e7012609bc4a48f34a1b963654.zip CMake-d2b108150f5549e7012609bc4a48f34a1b963654.tar.gz CMake-d2b108150f5549e7012609bc4a48f34a1b963654.tar.bz2 |
BUG: Recognize .so shared libraries on HP-UX
HP-UX uses both .sl and .so as extensions for shared libraries. This
teaches CMake to recognize .so shared libraries so they are treated
properly during link dependency analysis.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 11 |
1 files changed, 11 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); |