mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 19:09:06 +00:00
FASTBuild: fix paths' comparison on Windows
On Windows we might have different slashes, so ` if (binDir == converted)` will not work even for semantically equivalent directories.
This commit is contained in:
parent
05a3f4a30d
commit
c4369b81aa
@ -104,8 +104,8 @@ std::string cmLocalFastbuildGenerator::ConvertToIncludeReference(
|
||||
std::string converted = this->ConvertToOutputForExisting(path, format);
|
||||
cmGlobalFastbuildGenerator const* GG = this->GetGlobalFastbuildGenerator();
|
||||
if (GG->UsingRelativePaths && cmSystemTools::FileIsFullPath(path)) {
|
||||
std::string const& binDir =
|
||||
GG->GetCMakeInstance()->GetHomeOutputDirectory();
|
||||
std::string const binDir = this->ConvertToOutputFormat(
|
||||
GG->GetCMakeInstance()->GetHomeOutputDirectory(), OutputFormat::SHELL);
|
||||
if (binDir == converted) {
|
||||
return ".";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user