mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 03:08:35 -06:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user