Commit 238d9d9e authored by Brad King's avatar Brad King
Browse files

BUG: When MACOSX_PACKAGE_LOCATION specifies Headers/foo we must still create the Headers symlink.

parent 5db84ae9
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment