BUG: fix for vtk build

This commit is contained in:
Bill Hoffman 2003-12-23 13:31:11 -05:00
parent ef96274a08
commit 79c23436d3

View File

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