Fix absolute pathes import from vcxproj (#934)

Fixed importing vcxproj that contains files with absolute pathes.
This commit is contained in:
Nekto89 2017-08-08 00:51:12 +03:00 committed by Daniel Marjamäki
parent e182addcf6
commit 729af993fe
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ void ImportProject::importVcxproj(const std::string &filename, std::map<std::str
for (std::list<std::string>::const_iterator c = compileList.begin(); c != compileList.end(); ++c) {
for (std::list<ProjectConfiguration>::const_iterator p = projectConfigurationList.begin(); p != projectConfigurationList.end(); ++p) {
FileSettings fs;
fs.filename = Path::simplifyPath(Path::getPathFromFilename(filename) + *c);
fs.filename = Path::simplifyPath(Path::isAbsolute(*c) ? *c : Path::getPathFromFilename(filename) + *c);
fs.cfg = p->name;
fs.defines = "_MSC_VER=1900;_WIN32=1";
if (p->platform == ProjectConfiguration::Win32)