From 9657acb55a62f2e37a0378d01e93ab2ee4d151be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morn=C3=A9=20Chamberlain?= Date: Sun, 14 Oct 2012 12:11:32 +0200 Subject: [PATCH] The generator no longer generates absolute paths to the ninja.build/Makefiles. --- Source/cmExtraSublimeTextGenerator.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx index ab8af7ecb..af2696515 100644 --- a/Source/cmExtraSublimeTextGenerator.cxx +++ b/Source/cmExtraSublimeTextGenerator.cxx @@ -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) {