diff options
-rw-r--r-- | tools/create_msvc/create_msvc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp index fb26ff120f..863a202657 100644 --- a/tools/create_msvc/create_msvc.cpp +++ b/tools/create_msvc/create_msvc.cpp @@ -896,8 +896,11 @@ void createProjectFile(const std::string &name, const std::string &uuid, const B "\t<Files>\n"; std::string modulePath; - if (!moduleDir.compare(0, setup.srcDir.size(), setup.srcDir)) + if (!moduleDir.compare(0, setup.srcDir.size(), setup.srcDir)) { modulePath = moduleDir.substr(setup.srcDir.size()); + if (!modulePath.empty() && modulePath.at(0) == '/') + modulePath.erase(0, 1); + } if (modulePath.size()) addFilesToProject(moduleDir, project, includeList, excludeList, setup.filePrefix + '/' + modulePath); |