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.

This commit is contained in:
Brad King 2007-03-14 15:35:10 -04:00
parent 6d2f08b6e1
commit b8bd0f80db

View File

@ -963,6 +963,10 @@ cmLocalVisualStudio7Generator
if(cmSystemTools::FileIsFullPath(dir.c_str())) if(cmSystemTools::FileIsFullPath(dir.c_str()))
{ {
std::string rel = this->Convert(dir.c_str(), START_OUTPUT, UNCHANGED); std::string rel = this->Convert(dir.c_str(), START_OUTPUT, UNCHANGED);
if(rel.empty())
{
rel = ".";
}
if(rel.size() < dir.size()) if(rel.size() < dir.size())
{ {
dir = rel; dir = rel;