BUG: fix for vtk build

This commit is contained in:
Bill Hoffman 2003-12-23 13:31:11 -05:00
parent ef96274a08
commit 79c23436d3
1 changed files with 4 additions and 2 deletions

View File

@ -121,8 +121,10 @@ std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
{
relpath = ".";
}
cmSystemTools::ReplaceString(ret, m_HomeOutputDirectoryNoSlash.c_str(),
relpath.c_str());
if(ret == m_HomeOutputDirectoryNoSlash)
{
ret = relpath;
}
ret = cmSystemTools::ConvertToOutputPath(ret.c_str());
return ret;
}