diff options
author | Brad King <brad.king@kitware.com> | 2004-12-09 20:56:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-12-09 20:56:50 (GMT) |
commit | c710a2366de2a6653921d8634737e5feeed79ea5 (patch) | |
tree | 3336c588828ff207486d94cb1b980dc8c1ee331c | |
parent | e8ef42ed740d0b0fb6a07e5015f14c8c836c8363 (diff) | |
download | CMake-c710a2366de2a6653921d8634737e5feeed79ea5.zip CMake-c710a2366de2a6653921d8634737e5feeed79ea5.tar.gz CMake-c710a2366de2a6653921d8634737e5feeed79ea5.tar.bz2 |
BUG: Support for custom command outputs in subdirectories of current build tree location.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index ce0090d..db4e5ed 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 { |