mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -05:00
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:
@@ -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())
|
||||
<< ":";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user