|
@@ -3250,11 +3250,11 @@ void cmGeneratorTarget::GetLibraryNames(std::string& name,
|
|
|
else
|
|
|
{
|
|
|
// The library's soname.
|
|
|
- this->Target->ComputeVersionedName(soName, prefix, base, suffix,
|
|
|
+ this->ComputeVersionedName(soName, prefix, base, suffix,
|
|
|
name, soversion);
|
|
|
|
|
|
// The library's real name on disk.
|
|
|
- this->Target->ComputeVersionedName(realName, prefix, base, suffix,
|
|
|
+ this->ComputeVersionedName(realName, prefix, base, suffix,
|
|
|
name, version);
|
|
|
}
|
|
|
|
|
@@ -4436,6 +4436,23 @@ void cmGeneratorTarget::GetTargetVersion(bool soversion,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//----------------------------------------------------------------------------
|
|
|
+void cmGeneratorTarget::ComputeVersionedName(std::string& vName,
|
|
|
+ std::string const& prefix,
|
|
|
+ std::string const& base,
|
|
|
+ std::string const& suffix,
|
|
|
+ std::string const& name,
|
|
|
+ const char* version) const
|
|
|
+{
|
|
|
+ vName = this->Makefile->IsOn("APPLE") ? (prefix+base) : name;
|
|
|
+ if(version)
|
|
|
+ {
|
|
|
+ vName += ".";
|
|
|
+ vName += version;
|
|
|
+ }
|
|
|
+ vName += this->Makefile->IsOn("APPLE") ? suffix : std::string();
|
|
|
+}
|
|
|
+
|
|
|
//----------------------------------------------------------------------------
|
|
|
void
|
|
|
cmGeneratorTarget::ReportPropertyOrigin(const std::string &p,
|