diff options
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; } |