From 79c23436d3a0cf90140684c876a358d225810efb Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 23 Dec 2003 13:31:11 -0500 Subject: BUG: fix for vtk build --- Source/cmLocalGenerator.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 2c7f21d..66357f5 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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; } -- cgit v0.12