CREATE_PROJECT: Don't include files with the same name but different paths

This commit is contained in:
SupSuper
2020-11-11 10:24:59 +00:00
parent b9b580a4f1
commit b0bc795999
7 changed files with 49 additions and 25 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ void CodeBlocksProvider::createProjectFile(const std::string &name, const std::s
modulePath.erase(0, 1);
}
if (modulePath.size())
if (!modulePath.empty())
addFilesToProject(moduleDir, project, includeList, excludeList, setup.filePrefix + '/' + modulePath);
else
addFilesToProject(moduleDir, project, includeList, excludeList, setup.filePrefix);