summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-23 18:31:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-23 18:31:11 (GMT)
commit79c23436d3a0cf90140684c876a358d225810efb (patch)
tree937589685489eae2184fe97340efdd4098ffc467 /Source/cmLocalGenerator.cxx
parentef96274a0871cf6bb6429ce0e04e5a7c14b190f4 (diff)
downloadCMake-79c23436d3a0cf90140684c876a358d225810efb.zip
CMake-79c23436d3a0cf90140684c876a358d225810efb.tar.gz
CMake-79c23436d3a0cf90140684c876a358d225810efb.tar.bz2
BUG: fix for vtk build
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files 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;
}