From 414bf6732bf504d200b5c00490f160271e5b1b50 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Wed, 13 Jun 2012 22:49:45 +0200 Subject: [PATCH] Eclipse: parallel build also for "Build project" #13287 Use ${CMAKE_ECLIPSE_MAKE_ARGUMENTS} also for the overall build command, not only for the per-target commands. Alex --- Source/cmExtraEclipseCDT4Generator.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index 65077b30b..dc9eb6a7e 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -286,6 +286,9 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() // set the make command std::string make = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM"); + const std::string makeArgs = mf->GetSafeDefinition( + "CMAKE_ECLIPSE_MAKE_ARGUMENTS"); + fout << "\t\t\t\t\n" "\t\t\t\t\torg.eclipse.cdt.make.core.enabledIncrementalBuild\n" @@ -293,7 +296,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\torg.eclipse.cdt.make.core.build.command\n" - "\t\t\t\t\t" + this->GetEclipsePath(make) + "\n" + "\t\t\t\t\t" << this->GetEclipsePath(make) << "\n" "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\torg.eclipse.cdt.make.core.contents\n" @@ -305,7 +308,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\torg.eclipse.cdt.make.core.build.arguments\n" - "\t\t\t\t\t\n" + "\t\t\t\t\t" << makeArgs << "\n" "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\torg.eclipse.cdt.make.core.buildLocation\n"