Eclipse: quote the build dir (to make it work with spaces)

When creating the targets for Eclipse, quote the directory
in which make should change. Otherwise it will fail if the
path contains with spaces.

Alex
This commit is contained in:
Alex Neundorf 2011-11-01 21:23:52 +01:00
parent 057633151a
commit d31b1aca3f
1 changed files with 2 additions and 2 deletions

View File

@ -998,9 +998,9 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
std::string virtDir = "[Targets]/";
virtDir += prefix;
virtDir += ti->first;
std::string buildArgs = "-C ";
std::string buildArgs = "-C \"";
buildArgs += makefile->GetHomeOutputDirectory();
buildArgs += " ";
buildArgs += "\" ";
buildArgs += makeArgs;
this->AppendTarget(fout, "Build", make, buildArgs, virtDir, "",
ti->first.c_str());