Rebuilding in MSDEV
Posted on 1997-03-27
I am using MS Developer Studio/VC++ Version 4.2. I have a master
project/workspace that has two sub-projects that each build an executable.
Both of these sub-projects depend on a third sub-project that builds a DLL.
When I 'Rebuild All', Developer Studio unnecessarily rebuilds the third
sub-project twice -- once for each of the first two sub-projects that
include it. It shoud rebuild it once for the first sub-project and
recognize that it's already been rebuilt when it goes to build the second
sub-project. Unfortunately, the third sub-project is large, so rebuilds
are not trivial in the first place. I have simplified the problem to only
three projects, but in reality, there is a whole tree of dependencies and
sub-projects. This means that the project at the bottom of the tree gets
rebuilt six or eight times during a single rebuild. Is there a patch to
Developer Studio to remedy this? Is there a workaround to avoid this
problem? I tried adding the third project as a sub-project for ONE of the
other sub-projects, then including the .LIB file in the linking inputs for
the other project. This is bad, because on a normal build, the second
project won't recognize that a .cpp file in the third project has changed
and needs built. Any suggestions?