| "Project Build command" vs "Make target Build command" [message #882595] |
Wed, 06 June 2012 16:09  |
Chris Stankevitz Messages: 43 Registered: September 2011 |
Member |
|
|
Hello,
I'm using Eclipse Inidigo on linux with a project created by cmake. I have one "project" and approximately 50 "make targets".
I can right-click the "project" and select Properties | C++ Make Project | Make Builder. In there is a text box with a "Build command" which is set to "/usr/bin/gmake"
I can right-click each "make target" and select Edit. In there is a text box "build command" which is set to "/usr/bin/gmake -j4"
(See attached)
Q1: What is the difference between a "project build command" and a "make target build command"?
Q2: When is the "project build command" executed and when is the "make target build command" executed?
Q3: Which is executed if I "Build Project" aka CTRL-b
Q4: Which is executed if I "Build all"
Q5: I should probably append "-j4" to my "project build command" [this isn't much of a question, but I like the Qn format].
Thank you,
Chris
[Updated on: Wed, 06 June 2012 18:34] Report message to a moderator
|
|
|
| Re: "Project Build command" vs "Make target Build command" [message #884955 is a reply to message #882595] |
Tue, 12 June 2012 03:00   |
Axel Mueller Messages: 1828 Registered: July 2009 |
Senior Member |
|
|
Quote:Q1: What is the difference between a "project build command" and a "make target build command"?
Project build command will call the command that you have specified as "Build command" in Project Properties->C/C++ Build
(default is "make all")
Quote:Q2: When is the "project build command" executed and when is the "make target build command" executed?
"project build command" is executed when you select Build Project or press Ctrl-B. Make targets are available from the context menu in the Project Explorer or you can use the Make Target View (I prefer this one when you have a lot of make targets).
Quote:Q3: Which is executed if I "Build Project" aka CTRL-b
see Q3. "project build command" is executed
Quote:Q4: Which is executed if I "Build all"
This will call the "project build command" of every project in our workspace.
Quote:Q5: I should probably append "-j4" to my "project build command" [this isn't much of a question, but I like the Qn format].
I would advise so.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
Powered by
FUDForum. Page generated in 0.01582 seconds