diff options
author | David Cole <david.cole@kitware.com> | 2011-11-08 19:43:10 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-11-08 19:43:10 (GMT) |
commit | e4085569a95c223ff27680d48b9019196fb25db3 (patch) | |
tree | f6d6b430697ce7c1db2b7af7d8e9276a7662848e /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | 7ee0f580eb9714593b062f8ce6ca190ac50d6cd8 (diff) | |
parent | d31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79 (diff) | |
download | CMake-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.cxx | 6 |
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 \""; |