summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-14 19:35:10 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-14 19:35:10 (GMT)
commitb8bd0f80db6f86e0ce426305eb0ab06eb0b82e21 (patch)
treea51bee6a281f34cde7c5c998d5d65d259930b959 /Source/cmLocalVisualStudio7Generator.cxx
parent6d2f08b6e1dd1c0f5dc9f277834e839138a8ddba (diff)
downloadCMake-b8bd0f80db6f86e0ce426305eb0ab06eb0b82e21.zip
CMake-b8bd0f80db6f86e0ce426305eb0ab06eb0b82e21.tar.gz
CMake-b8bd0f80db6f86e0ce426305eb0ab06eb0b82e21.tar.bz2
BUG: When the current output directory is a link directory we need to reference it with the relative path "." instead of an empty relative path.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-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;