From 238d9d9e308a0e7a4a05ebb9992a99b38639747c Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Apr 2008 09:08:35 -0400 Subject: BUG: When MACOSX_PACKAGE_LOCATION specifies Headers/foo we must still create the Headers symlink. --- Source/cmMakefileTargetGenerator.cxx | 9 +++++++-- 1 file 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(); -- cgit v0.12