ENH: Simplify. Instead of doing ../MacOS just copy to current directory

This commit is contained in:
Andy Cedilnik 2006-03-29 16:25:24 -05:00
parent 7bc8564c73
commit 5076590a02
1 changed files with 4 additions and 1 deletions

View File

@ -704,7 +704,10 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
copyFilesBuildPhase->AddAttribute("runOnlyForDeploymentPostprocessing",
this->CreateString("0"));
cmOStringStream ostr;
ostr << "../" << mit->first.c_str();
if ( mit->first != "MacOS" )
{
ostr << "../" << mit->first.c_str();
}
copyFilesBuildPhase->AddAttribute("dstPath",
this->CreateString(ostr.str().c_str()));
buildFiles = this->CreateObject(cmXCodeObject::OBJECT_LIST);