diff options
author | Brad King <brad.king@kitware.com> | 2015-11-16 14:22:46 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-11-16 14:22:46 (GMT) |
commit | 30b0db7bb5482258ccdb96d2f0b7aadb5d3b23ac (patch) | |
tree | 87a881114357dbd978dcf5b4d23728a55883194b /Source | |
parent | 166a61c72986a45814c524f178857207f3cc113e (diff) | |
parent | f6f03ed4cc4271384ec934fd5867ccbce4e798f2 (diff) | |
download | CMake-30b0db7bb5482258ccdb96d2f0b7aadb5d3b23ac.zip CMake-30b0db7bb5482258ccdb96d2f0b7aadb5d3b23ac.tar.gz CMake-30b0db7bb5482258ccdb96d2f0b7aadb5d3b23ac.tar.bz2 |
Merge topic 'non-xcode-framework-layout'
f6f03ed4 Add test for OSX/iOS Framework directory structure (#15833)
9f053763 Fix iOS Framework directory structure (#15833)
Diffstat (limited to 'Source')
-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; |