From 4eb43a55571ea76c36aa546ea322f1b04ff36857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 2 Aug 2017 22:51:22 +0200 Subject: [PATCH] Fixed some recent regression in ImportProject for vcxproj projects --- lib/importproject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index b02145be9..7a692c4f8 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -454,9 +454,9 @@ void ImportProject::importVcxproj(const std::string &filename, std::mapFirstChildElement(); 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); } }