mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 02:38:37 -06:00
BUG: Support for custom command outputs in subdirectories of current build tree location.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user