|
@@ -951,9 +951,13 @@ cmGeneratorTarget::GetAppBundleDirectory(const std::string& config,
|
|
|
bool contentOnly) const
|
|
bool contentOnly) const
|
|
|
{
|
|
{
|
|
|
std::string fpath = this->GetFullName(config, false);
|
|
std::string fpath = this->GetFullName(config, false);
|
|
|
- fpath += ".app/Contents";
|
|
|
|
|
- if(!contentOnly)
|
|
|
|
|
- fpath += "/MacOS";
|
|
|
|
|
|
|
+ fpath += ".app";
|
|
|
|
|
+ if(!this->Makefile->PlatformIsAppleIos())
|
|
|
|
|
+ {
|
|
|
|
|
+ fpath += "/Contents";
|
|
|
|
|
+ if(!contentOnly)
|
|
|
|
|
+ fpath += "/MacOS";
|
|
|
|
|
+ }
|
|
|
return fpath;
|
|
return fpath;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -985,9 +989,12 @@ std::string cmGeneratorTarget::GetCFBundleDirectory(const std::string& config,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
fpath += ext;
|
|
fpath += ext;
|
|
|
- fpath += "/Contents";
|
|
|
|
|
- if(!contentOnly)
|
|
|
|
|
- fpath += "/MacOS";
|
|
|
|
|
|
|
+ if(!this->Makefile->PlatformIsAppleIos())
|
|
|
|
|
+ {
|
|
|
|
|
+ fpath += "/Contents";
|
|
|
|
|
+ if(!contentOnly)
|
|
|
|
|
+ fpath += "/MacOS";
|
|
|
|
|
+ }
|
|
|
return fpath;
|
|
return fpath;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -999,7 +1006,7 @@ cmGeneratorTarget::GetFrameworkDirectory(const std::string& config,
|
|
|
std::string fpath;
|
|
std::string fpath;
|
|
|
fpath += this->GetOutputName(config, false);
|
|
fpath += this->GetOutputName(config, false);
|
|
|
fpath += ".framework";
|
|
fpath += ".framework";
|
|
|
- if(!rootDir)
|
|
|
|
|
|
|
+ if(!rootDir && !this->Makefile->PlatformIsAppleIos())
|
|
|
{
|
|
{
|
|
|
fpath += "/Versions/";
|
|
fpath += "/Versions/";
|
|
|
fpath += this->Target->GetFrameworkVersion();
|
|
fpath += this->Target->GetFrameworkVersion();
|
|
@@ -2146,9 +2153,12 @@ void cmGeneratorTarget::GetLibraryNames(std::string& name,
|
|
|
if(this->Target->IsFrameworkOnApple())
|
|
if(this->Target->IsFrameworkOnApple())
|
|
|
{
|
|
{
|
|
|
realName = prefix;
|
|
realName = prefix;
|
|
|
- realName += "Versions/";
|
|
|
|
|
- realName += this->Target->GetFrameworkVersion();
|
|
|
|
|
- realName += "/";
|
|
|
|
|
|
|
+ if(!this->Makefile->PlatformIsAppleIos())
|
|
|
|
|
+ {
|
|
|
|
|
+ realName += "Versions/";
|
|
|
|
|
+ realName += this->Target->GetFrameworkVersion();
|
|
|
|
|
+ realName += "/";
|
|
|
|
|
+ }
|
|
|
realName += base;
|
|
realName += base;
|
|
|
soName = realName;
|
|
soName = realName;
|
|
|
}
|
|
}
|