summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-01 20:23:52 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-01 20:23:52 (GMT)
commitd31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79 (patch)
tree0cf4ad749ca01cc21faf265ae28d650bb3aa68d2
parent057633151a527fc614b56f4ca3fd73f63928ebff (diff)
downloadCMake-d31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79.zip
CMake-d31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79.tar.gz
CMake-d31b1aca3fcf5d8c0e7ab5cbb37045ad87dead79.tar.bz2
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
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index eab149e..a338031 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -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());