BUG: Support for custom command outputs in subdirectories of current build tree location.

This commit is contained in:
Brad King 2004-12-09 15:56:50 -05:00
parent e8ef42ed74
commit c710a2366d
1 changed files with 2 additions and 0 deletions

View File

@ -1924,9 +1924,11 @@ cmLocalUnixMakefileGenerator2
if(cmSystemTools::FileIsFullPath(cc.GetOutput().c_str()) &&
(cc.GetOutput().find(m_Makefile->GetStartOutputDirectory()) == 0))
{
// Use the relative path but convert it to a valid file name.
customName =
cmSystemTools::RelativePath(m_Makefile->GetStartOutputDirectory(),
cc.GetOutput().c_str());
cmSystemTools::ReplaceString(customName, "/", "_");
}
else
{