importSln: Handle absolute paths for vcxproj

This commit is contained in:
rsBNT 2017-07-10 11:12:48 +02:00 committed by Daniel Marjamäki
parent f85e43d21f
commit fb7230ce05
1 changed files with 4 additions and 2 deletions

View File

@ -253,8 +253,10 @@ void ImportProject::importSln(std::istream &istr, const std::string &path)
const std::string::size_type pos1 = line.rfind('\"',pos);
if (pos == std::string::npos)
continue;
const std::string vcxproj(line.substr(pos1+1, pos-pos1+7));
importVcxproj(path + Path::fromNativeSeparators(vcxproj), variables, emptyString);
std::string vcxproj(line.substr(pos1+1, pos-pos1+7));
if (!Path::isAbsolute(vcxproj))
vcxproj = path + vcxproj;
importVcxproj(Path::fromNativeSeparators(vcxproj), variables, emptyString);
}
}