Browse Source

Merge topic 'FixTargetsInVirtualFoldersForEclipseIndigo'

d31b1ac Eclipse: quote the build dir (to make it work with spaces)
0576331 Eclipse: make targets work from any directory
David Cole 14 years ago
parent
commit
e4085569a9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Source/cmExtraEclipseCDT4Generator.cxx

+ 5 - 1
Source/cmExtraEclipseCDT4Generator.cxx

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