Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367540

Summary: When referred project changes, this does not trigger a rebuild of the depended project
Product: [Tools] CDT Reporter: Boian Petkantchin <sogartary>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: major    
Priority: P3 CC: cdtdoug, sogartary
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Boian Petkantchin CLA 2011-12-24 10:02:14 EST
Build Identifier: Version: Indigo Service Release 1 | Build id: 20110916-0149

If we have two project, one of them a shared library and the other is an executable. Both of them are using the Internal Builder. The executable project references the shared library project. I achieve this through "Project -> Properties -> Project References" and "Project -> Properties -> C/C++ General -> Paths and Symbols -> References". In the latter case, the active build configuration is referred. When a source file is changed in the shared library and a build of all project is ordered, the library is rebuild, but the executable is not. The expected behavior is that the dependent executable project is also rebuild.
I experience this problem both on Windows XP and Ubuntu with the same version.
This seams to be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=205113, but here the rebuild does not happen even if the file is changed inside Eclipse.

Reproducible: Always

Steps to Reproduce:
1. Create a C++ shared library project, that uses the Internal Builder.
2. Create a C++ executable project, that uses the Internal Builder.
3. Create a project dependency through "Project -> Properties -> Project References" and "Project -> Properties -> C/C++ General -> Paths and Symbols -> References", by referring the shared library in the executable project.
4. Add some dummy source files in the projects.
5. Order "Project -> Build All".
6. Change some of the source files in the shared library project.
7. Order "Project -> Build All".