summaryrefslogtreecommitdiff
path: root/Source/cmAddExecutableCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-05 09:13:06 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-05 09:13:06 -0500
commit7b1440ab9fef6d240eb5beb333ac606f966486a4 (patch)
tree6726bf3178e42757fedb06ce1623c76f29d7eb59 /Source/cmAddExecutableCommand.cxx
parent11cd7b0b3f20b384220e65c4ef9de5afea0b1618 (diff)
downloadcmake-7b1440ab9fef6d240eb5beb333ac606f966486a4.tar.gz
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 f70e790d36..71e338dc27 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;