The generator no longer generates absolute paths to the ninja.build/Makefiles.
This commit is contained in:
parent
6742ee747f
commit
9657acb55a
|
@ -351,17 +351,16 @@ void cmExtraSublimeTextGenerator::AppendTarget(cmGeneratedFileStream& fout,
|
|||
}
|
||||
}
|
||||
|
||||
// Write out the build_system data for this target
|
||||
std::string makefileName = makefile->GetHomeOutputDirectory();
|
||||
// Ninja uses ninja.build files (look for a way to get the output file name
|
||||
// from cmMakefile)
|
||||
// from cmMakefile or something)
|
||||
std::string makefileName;
|
||||
if (strcmp(this->GlobalGenerator->GetName(), "Ninja")==0)
|
||||
{
|
||||
makefileName += "/build.ninja";
|
||||
makefileName = "build.ninja";
|
||||
}
|
||||
else
|
||||
{
|
||||
makefileName += "/Makefile";
|
||||
makefileName = "Makefile";
|
||||
}
|
||||
if (!firstTarget)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue