summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-14 13:08:35 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-14 13:08:35 (GMT)
commit238d9d9e308a0e7a4a05ebb9992a99b38639747c (patch)
treec89a9928dc00033b47ab99241882b69229e3c71d /Source/cmMakefileTargetGenerator.cxx
parent5db84ae9b09fe295df0d0b60e9cbae35951d9d10 (diff)
downloadCMake-238d9d9e308a0e7a4a05ebb9992a99b38639747c.zip
CMake-238d9d9e308a0e7a4a05ebb9992a99b38639747c.tar.gz
CMake-238d9d9e308a0e7a4a05ebb9992a99b38639747c.tar.bz2
BUG: When MACOSX_PACKAGE_LOCATION specifies Headers/foo we must still create the Headers symlink.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 6c3afbd..28a6105 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -334,8 +334,13 @@ void cmMakefileTargetGenerator::WriteMacOSXContentRules(cmSourceFile& source,
macdir += pkgloc;
cmSystemTools::MakeDirectory(macdir.c_str());
- // Record use of this content location.
- this->MacContentFolders.insert(pkgloc);
+ // Record use of this content location. Only the first level
+ // directory is needed.
+ {
+ std::string loc = pkgloc;
+ loc = loc.substr(0, loc.find('/'));
+ this->MacContentFolders.insert(loc);
+ }
// Get the input file location.
std::string input = source.GetFullPath();