From b8bd0f80db6f86e0ce426305eb0ab06eb0b82e21 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 14 Mar 2007 15:35:10 -0400 Subject: 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. --- Source/cmLocalVisualStudio7Generator.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v0.12