importSln: Handle absolute paths for vcxproj
This commit is contained in:
parent
f85e43d21f
commit
fb7230ce05
|
@ -253,8 +253,10 @@ void ImportProject::importSln(std::istream &istr, const std::string &path)
|
||||||
const std::string::size_type pos1 = line.rfind('\"',pos);
|
const std::string::size_type pos1 = line.rfind('\"',pos);
|
||||||
if (pos == std::string::npos)
|
if (pos == std::string::npos)
|
||||||
continue;
|
continue;
|
||||||
const std::string vcxproj(line.substr(pos1+1, pos-pos1+7));
|
std::string vcxproj(line.substr(pos1+1, pos-pos1+7));
|
||||||
importVcxproj(path + Path::fromNativeSeparators(vcxproj), variables, emptyString);
|
if (!Path::isAbsolute(vcxproj))
|
||||||
|
vcxproj = path + vcxproj;
|
||||||
|
importVcxproj(Path::fromNativeSeparators(vcxproj), variables, emptyString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue