BUG: Fix LOCATION property for Mac AppBundles

Previously cmTarget::GetLocation and cmTarget::GetFullPath would return
for Mac AppBundles the top-level bundle directory but without the .app
extension.  We worked around this at the call sites.  This fixes the
methods and removes the work-arounds.  See issue #8406.
This commit is contained in:
Brad King
2009-01-20 15:49:37 -05:00
parent 2c81e5fb5c
commit acb0e8fb85
3 changed files with 11 additions and 17 deletions
-10
View File
@@ -2607,11 +2607,6 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
t->GetType() == cmTarget::MODULE_LIBRARY)
{
std::string tfull = t->GetFullPath(configName);
if(t->IsAppBundleOnApple())
{
tfull += ".app/Contents/MacOS/";
tfull += t->GetFullName(configName);
}
makefileStream << "\\\n\t" <<
this->ConvertToRelativeForMake(tfull.c_str());
}
@@ -2669,11 +2664,6 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
{
// Create a rule for this target.
std::string tfull = t->GetFullPath(configName);
if(t->IsAppBundleOnApple())
{
tfull += ".app/Contents/MacOS/";
tfull += t->GetFullName(configName);
}
makefileStream << this->ConvertToRelativeForMake(tfull.c_str())
<< ":";