Fixed some recent regression in ImportProject for vcxproj projects

This commit is contained in:
Daniel Marjamäki 2017-08-02 22:51:22 +02:00
parent da3846f752
commit 4eb43a5557
1 changed files with 2 additions and 2 deletions

View File

@ -454,9 +454,9 @@ void ImportProject::importVcxproj(const std::string &filename, std::map<std::str
}
} else {
for (const tinyxml2::XMLElement *e = node->FirstChildElement(); e; e = e->NextSiblingElement()) {
if (std::strcmp(e->Name(), "ClCompile") != 0) {
if (std::strcmp(e->Name(), "ClCompile") == 0) {
const char *include = e->Attribute("Include");
if (include)
if (include && Path::acceptFile(include))
compileList.push_back(include);
}
}