diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-12-23 18:31:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-12-23 18:31:11 (GMT) |
commit | 79c23436d3a0cf90140684c876a358d225810efb (patch) | |
tree | 937589685489eae2184fe97340efdd4098ffc467 /Source/cmLocalGenerator.cxx | |
parent | ef96274a0871cf6bb6429ce0e04e5a7c14b190f4 (diff) | |
download | CMake-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.cxx | 6 |
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; } |