Some path resolution exceptions
836454543 opened this issue · comments
The function ConfigGenerator::makeFileGeneratorRelative
return ""
when the relative path is ./
.
And the code in ProjectGenerator::runMSVC
string projectDir = m_configHelper.m_solutionDirectory;
m_configHelper.makeFileGeneratorRelative(projectDir, projectDir); // projectDir == ""
...
for (auto& i : includeDirs2) {
...
// i == "$(ProjectDir)/../compat/atomics/win32/"
findPos2 = i.find("$(ProjectDir)");
if (findPos2 != string::npos) {
// i == "/../compat/atomics/win32/", ERROR!!!
// It should be "./../compat/atomics/win32/" or "../compat/atomics/win32/"
i.replace(findPos2, 13, projectDir);
}
...
}
I am sorry for my pool English.