Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » configure eclipse not to build referenced projects(Is there an option to disable building of referenced projects in eclipse?)
configure eclipse not to build referenced projects [message #660189] Thu, 17 March 2011 05:50 Go to next message
Eclipse UserFriend
Hi,

I'm using CDT with multiple projects in my workspace:
- each executable has a project
- each (reusable) library has a project

All these projects can be built independently with a Makefile.

When one project includes header files from another project, in indicate this in the 'referenced projects dialog'. This allows me to navigate to the symbols in the included headerfile.

What I don't like, is that when I build one project, the referenced projects are also built. We ensure in our Makefiles that all dependencies are built if needed. If eclipse starts building a referenced project also, things are build too frequently.
Is there an option to disable building of referenced projects in eclipse?

Thanks!
Re: configure eclipse not to build referenced projects [message #660378 is a reply to message #660189] Fri, 18 March 2011 04:21 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Is there an option to disable building of referenced projects in eclipse?

The only purpose of referenced projects is to get them build when the main project is build.
To get the included header files from another project you should open Project Properties->C/C++ General->Paths and Symbols
In the tab "Includes" click Add and then click Workspace. Select the project which header files you want to include (you can use subdirectories as well). In addition, I would suggest to enable "Add to all configurations" (build configurations) and "Add to all languages" (assembler, C, C++).
Re: configure eclipse not to build referenced projects [message #1021005 is a reply to message #660189] Tue, 19 March 2013 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Referenced project are also extremely useful to automatically add exported include paths to project that references them.

Even when there is nothing to build "building" takes more one 1 sec for each referenced project.
Re: configure eclipse not to build referenced projects [message #1021525 is a reply to message #1021005] Wed, 20 March 2013 05:18 Go to previous message
Eclipse UserFriend
Option to prevent building of referenced projects https://bugs.eclipse.org/bugs/show_bug.cgi?id=256233

[Updated on: Wed, 20 March 2013 05:18] by Moderator

Previous Topic:unresolved inclusions
Next Topic:CDT inconsistant behaviour in Juno
Goto Forum:
  


Current Time: Tue Jul 22 18:22:05 EDT 2025

Powered by FUDForum. Page generated in 0.03754 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top