summaryrefslogtreecommitdiffstats
path: root/Source/cmAddExecutableCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-05 14:13:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-05 14:13:06 (GMT)
commit7b1440ab9fef6d240eb5beb333ac606f966486a4 (patch)
tree6726bf3178e42757fedb06ce1623c76f29d7eb59 /Source/cmAddExecutableCommand.cxx
parent11cd7b0b3f20b384220e65c4ef9de5afea0b1618 (diff)
downloadCMake-7b1440ab9fef6d240eb5beb333ac606f966486a4.zip
CMake-7b1440ab9fef6d240eb5beb333ac606f966486a4.tar.gz
CMake-7b1440ab9fef6d240eb5beb333ac606f966486a4.tar.bz2
ENH: fix bundles for Mac and Xcode
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r--Source/cmAddExecutableCommand.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx
index f70e790..71e338d 100644
--- a/Source/cmAddExecutableCommand.cxx
+++ b/Source/cmAddExecutableCommand.cxx
@@ -64,29 +64,6 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
if ( use_macbundle)
{
tgt->SetProperty("MACOSX_BUNDLE", "ON");
-#ifdef __APPLE__
- std::string f1 = m_Makefile->GetModulesFile("MacOSXBundleInfo.plist.in");
- if ( f1.size() == 0 )
- {
- this->SetError("could not find Mac OSX bundle template file.");
- return false;
- }
- std::string macdir = m_Makefile->GetSafeDefinition("EXECUTABLE_OUTPUT_PATH");
- if ( macdir.size() == 0 )
- {
- macdir = m_Makefile->GetCurrentOutputDirectory();
- }
- if(macdir.size() && macdir[macdir.size()-1] != '/')
- {
- macdir += "/";
- }
- macdir += exename + ".app/Contents/";
- std::string f2 = macdir + "Info.plist";
- macdir += "MacOS";
- cmSystemTools::MakeDirectory(macdir.c_str());
- m_Makefile->AddDefinition("MACOSX_BUNDLE_EXECUTABLE_NAME", exename.c_str());
- m_Makefile->ConfigureFile(f1.c_str(), f2.c_str(), false, false, false);
-#endif
}
return true;