summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 100d791..167e98f 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -963,6 +963,10 @@ cmLocalVisualStudio7Generator
if(cmSystemTools::FileIsFullPath(dir.c_str()))
{
std::string rel = this->Convert(dir.c_str(), START_OUTPUT, UNCHANGED);
+ if(rel.empty())
+ {
+ rel = ".";
+ }
if(rel.size() < dir.size())
{
dir = rel;