mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-08 06:16:53 +00:00
iOS: Fix App Bundle layout
In contrast to OS X the iOS App Bundle layout is a flat structure.
This commit is contained in:
1 parent
fc6c5074e8
commit
34f5ef564a
1 file changed
+7
-1
@@ -152,13 +152,19 @@ void cmInstallTargetGenerator::GenerateScriptForConfig(std::ostream& os,
|
||||
// Handle OSX Bundles.
|
||||
if(this->Target->IsAppBundleOnApple())
|
||||
{
|
||||
cmMakefile const* mf = this->Target->Target->GetMakefile();
|
||||
|
||||
// Install the whole app bundle directory.
|
||||
type = cmInstallType_DIRECTORY;
|
||||
literal_args += " USE_SOURCE_PERMISSIONS";
|
||||
from1 += ".app";
|
||||
|
||||
// Tweaks apply to the binary inside the bundle.
|
||||
to1 += ".app/Contents/MacOS/";
|
||||
to1 += ".app/";
|
||||
if(!mf->PlatformIsAppleIos())
|
||||
{
|
||||
to1 += "Contents/MacOS/";
|
||||
}
|
||||
to1 += targetName;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user