diff options
author | Felix Geyer <fgeyer@debian.org> | 2015-08-20 12:13:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-20 14:45:09 (GMT) |
commit | f799ffb5cb895855ac2aba54765622b81db5be38 (patch) | |
tree | 211d48c7fa168fe7945939de227a396302e65dce /Source/cmGeneratorTarget.cxx | |
parent | 899458ab20876aeea915a59e9bfb459d92d264de (diff) | |
download | CMake-f799ffb5cb895855ac2aba54765622b81db5be38.zip CMake-f799ffb5cb895855ac2aba54765622b81db5be38.tar.gz CMake-f799ffb5cb895855ac2aba54765622b81db5be38.tar.bz2 |
Do not set SONAME for MODULE library targets (#15705)
The SONAME field is only useful for shared libraries that application
link against.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 299c112..89c1922 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -761,8 +761,7 @@ bool cmGeneratorTarget::HasSOName(const std::string& config) const { // soname is supported only for shared libraries and modules, // and then only when the platform supports an soname flag. - return ((this->GetType() == cmTarget::SHARED_LIBRARY || - this->GetType() == cmTarget::MODULE_LIBRARY) && + return ((this->GetType() == cmTarget::SHARED_LIBRARY) && !this->GetPropertyAsBool("NO_SONAME") && this->Makefile->GetSONameFlag(this->GetLinkerLanguage(config))); } |