Reputation: 12603
I am working with Eclipse CDT and I want to build the current project only, not any referenced project. Is this somehow possible?
The idea behind this is, that I want to distinguish between "Build Project" and "Build all projects" (in which case, referenced libraries should be built as well).
Thanks in advance, Martin
Upvotes: 16
Views: 10548
Reputation: 6512
I un-reference the projects. Somehow the newest CDT is still able to find things in the code.
Build only the project dindn't work as it would still build all.
Upvotes: 0
Reputation: 926
I found that 'Build Project' is grayed (disabled) in the Project menu (and not in the Project Explorer context menu) when the Project -> 'Build Automatically' option is checked. I unchecked that and can now independently build my projects.
Upvotes: 0
Reputation: 159
Shortcut Key Method
Another way is to change the shortcut key for building a project eg. Ctrl-B to only Build Project, instead of Build All.
Try it out
Upvotes: 9
Reputation: 3146
I use another workaround; I changed the default key binding for "Build All" to Alt+Ctrl+B, and changed the binding to "Build Project" to "Ctrl+B".
If you didn't want to mess with the defaults you could add the custom binding (e.g., Alt+Ctrl+B directly to "Build Project".
To change keyboard shortcuts go to &Window, &Preferences, and search for "keys".
Upvotes: 32
Reputation: 21
You can right click on the project explorer and choose "Build Project"
, or
just use the:
"Project" menu -> "Build Project"
Upvotes: 2
Reputation: 12980
I'd love to have a better answer for this - the only workaround I know of is to go and actually close all the projects but the one you want built.
Upvotes: 8