mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
Ninja: use slashes for include dirs, so also slahes are in the .d files
This commit is contained in:
@@ -147,6 +147,9 @@ public:
|
||||
const cmNinjaDeps& targets,
|
||||
const std::string& comment = "");
|
||||
|
||||
|
||||
static bool IsMinGW() { return UsingMinGW; }
|
||||
|
||||
public:
|
||||
/// Default constructor.
|
||||
cmGlobalNinjaGenerator();
|
||||
|
||||
@@ -154,6 +154,8 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile *source,
|
||||
language.c_str());
|
||||
std::string includeFlags =
|
||||
this->LocalGenerator->GetIncludeFlags(includes, language.c_str(), false);
|
||||
if(cmGlobalNinjaGenerator::IsMinGW())
|
||||
cmSystemTools::ReplaceString(includeFlags, "\\", "/");
|
||||
this->LocalGenerator->AppendFlags(flags, includeFlags.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user