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

View file

@ -118,7 +118,7 @@ void VisualStudioProvider::createProjectFile(const std::string &name, const std:
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);