summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-08 19:43:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-11-08 19:43:10 (GMT)
commite4085569a95c223ff27680d48b9019196fb25db3 (patch)
treef6d6b430697ce7c1db2b7af7d8e9276a7662848e /Source/cmExtraEclipseCDT4Generator.cxx
parent7ee0f580eb9714593b062f8ce6ca190ac50d6cd8 (diff)
parentd31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79 (diff)
downloadCMake-e4085569a95c223ff27680d48b9019196fb25db3.zip
CMake-e4085569a95c223ff27680d48b9019196fb25db3.tar.gz
CMake-e4085569a95c223ff27680d48b9019196fb25db3.tar.bz2
Merge topic 'FixTargetsInVirtualFoldersForEclipseIndigo'
d31b1ac Eclipse: quote the build dir (to make it work with spaces) 0576331 Eclipse: make targets work from any directory
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index 0667da7..248a30a 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/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 \"";