summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-07-07 14:05:29 (GMT)
committerBrad King <brad.king@kitware.com>2008-07-07 14:05:29 (GMT)
commit97e658c571432757902f3333bb15aab90156dc9f (patch)
treec720b5e15193373d6a8155f6fad284e7175c8821
parent7a10a8ca333ef7c84d19e313c6801ee0fe4bf689 (diff)
downloadCMake-97e658c571432757902f3333bb15aab90156dc9f.zip
CMake-97e658c571432757902f3333bb15aab90156dc9f.tar.gz
CMake-97e658c571432757902f3333bb15aab90156dc9f.tar.bz2
BUG: Fix AppBundle=>Library depends in Xcode
- The Xcode generator xcode-depend-helper needs to account for the paths of executables within application bundles. - See bug #7278.
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 84d088f..b2afa7f 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2579,9 +2579,14 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget(
t->GetType() == cmTarget::SHARED_LIBRARY ||
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(
- t->GetFullPath(configName).c_str());
+ this->ConvertToRelativeForMake(tfull.c_str());
}
}
makefileStream << "\n\n";
@@ -2637,6 +2642,11 @@ 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())
<< ":";