diff options
author | Bartosz Kosiorek <bartosz.kosiorek@tomtom.com> | 2015-11-12 07:44:07 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-11-13 10:51:08 (GMT) |
commit | 9f053763d769780385fbc8e3e936f1c996d2e00a (patch) | |
tree | ceec793c9d590c4a54342de03c10d13f247c505c /Source/cmOSXBundleGenerator.cxx | |
parent | 415863e6d40f3c09d43b41ef16e0a7ffa0006063 (diff) | |
download | CMake-9f053763d769780385fbc8e3e936f1c996d2e00a.zip CMake-9f053763d769780385fbc8e3e936f1c996d2e00a.tar.gz CMake-9f053763d769780385fbc8e3e936f1c996d2e00a.tar.bz2 |
Fix iOS Framework directory structure (#15833)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Source/cmOSXBundleGenerator.cxx')
-rw-r--r-- | Source/cmOSXBundleGenerator.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx index 3c4aa00..934e198 100644 --- a/Source/cmOSXBundleGenerator.cxx +++ b/Source/cmOSXBundleGenerator.cxx @@ -85,15 +85,24 @@ void cmOSXBundleGenerator::CreateFramework( std::string frameworkVersion = this->GT->GetFrameworkVersion(); - // Configure the Info.plist file into the Resources directory. - this->MacContentFolders->insert("Resources"); + // Configure the Info.plist file std::string plist = newoutpath; - plist += "/Resources/Info.plist"; + if (!this->Makefile->PlatformIsAppleIos()) + { + // Put the Info.plist file into the Resources directory. + this->MacContentFolders->insert("Resources"); + plist += "/Resources"; + } + plist += "/Info.plist"; std::string name = cmSystemTools::GetFilenameName(targetName); this->LocalGenerator->GenerateFrameworkInfoPList(this->GT, name, plist.c_str()); + // Generate Versions directory only for MacOSX frameworks + if (this->Makefile->PlatformIsAppleIos()) + return; + // TODO: Use the cmMakefileTargetGenerator::ExtraFiles vector to // drive rules to create these files at build time. std::string oldName; |