summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-06 18:54:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-06 18:54:27 (GMT)
commit0edceb38846f86f7e7cb0fff0fa0f8d50e876928 (patch)
treec09e5c47745f7a4e2fb3f6464359f0fd0868e74d /Source/cmGlobalXCodeGenerator.cxx
parentcda76d7eff6390e2cebf08f7346da1f6998f0883 (diff)
downloadCMake-0edceb38846f86f7e7cb0fff0fa0f8d50e876928.zip
CMake-0edceb38846f86f7e7cb0fff0fa0f8d50e876928.tar.gz
CMake-0edceb38846f86f7e7cb0fff0fa0f8d50e876928.tar.bz2
ENH: fix missing plist file error
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index f8c4f5a..017c908 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1150,14 +1150,16 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
fileType = "compiled.mach-o.executable";
if(target.GetPropertyAsBool("MACOSX_BUNDLE"))
{
- std::string f1 = m_CurrentMakefile->GetModulesFile("MacOSXBundleInfo.plist.in");
+ std::string f1 =
+ m_CurrentMakefile->GetModulesFile("MacOSXBundleInfo.plist.in");
if ( f1.size() == 0 )
{
cmSystemTools::Error("could not find Mac OSX bundle template file.");
}
std::string f2 = m_CurrentMakefile->GetCurrentOutputDirectory();
f2 += "/Info.plist";
- m_CurrentMakefile->ConfigureFile(f1.c_str(), f2.c_str(), false, false, false);
+ m_CurrentMakefile->ConfigureFile(f1.c_str(), f2.c_str(),
+ false, false, false);
productType = "com.apple.product-type.application";
std::string path =
this->ConvertToRelativeForXCode(f2.c_str());
@@ -1799,9 +1801,9 @@ void cmGlobalXCodeGenerator::CreateGroups(cmLocalGenerator* root,
if(cmtarget.GetPropertyAsBool("MACOSX_BUNDLE"))
{
cmSourceFile file;
- file.SetName("Info.plist", m_CurrentMakefile->GetCurrentOutputDirectory(),
- m_CurrentMakefile->GetSourceExtensions(),
- m_CurrentMakefile->GetHeaderExtensions());
+ file.SetName("Info",
+ m_CurrentMakefile->GetCurrentOutputDirectory(),
+ "plist", false);
cmtarget.GetSourceFiles().push_back(m_CurrentMakefile->AddSource(file));
}