From c710a2366de2a6653921d8634737e5feeed79ea5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 9 Dec 2004 15:56:50 -0500 Subject: [PATCH] BUG: Support for custom command outputs in subdirectories of current build tree location. --- Source/cmLocalUnixMakefileGenerator2.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index ce0090d51..db4e5ed4d 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -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 {