From c4369b81aa218a50de447dd54fa203f5c26bb501 Mon Sep 17 00:00:00 2001 From: Eduard Voronkin Date: Mon, 29 Sep 2025 13:13:57 -0700 Subject: [PATCH] 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. --- Source/cmLocalFastbuildGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalFastbuildGenerator.cxx b/Source/cmLocalFastbuildGenerator.cxx index 584bb80ace..8211a7efd4 100644 --- a/Source/cmLocalFastbuildGenerator.cxx +++ b/Source/cmLocalFastbuildGenerator.cxx @@ -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 "."; }