fix #21022 Ninja generator doesn't need Windows backslash

parent 5becf28f
Pipeline #183444 waiting for manual action with stages
in 44 minutes and 56 seconds
......@@ -432,9 +432,6 @@ void cmGlobalNinjaGenerator::WriteDefault(std::ostream& os,
cmGlobalNinjaGenerator::cmGlobalNinjaGenerator(cmake* cm)
: cmGlobalCommonGenerator(cm)
{
#ifdef _WIN32
cm->GetState()->SetWindowsShell(true);
#endif
this->FindMakeProgramFile = "CMakeNinjaFindMake.cmake";
}
......@@ -970,9 +967,6 @@ std::string const& cmGlobalNinjaGenerator::ConvertToNinjaPath(
std::string const& bin_dir = ng.GetState()->GetBinaryDirectory();
std::string convPath = ng.MaybeConvertToRelativePath(bin_dir, path);
convPath = this->NinjaOutputPath(convPath);
#ifdef _WIN32
std::replace(convPath.begin(), convPath.end(), '/', '\\');
#endif
return ConvertToNinjaPathCache.emplace(path, std::move(convPath))
.first->second;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment