<div dir="ltr">Hi,<div><br></div><div>Let's say I have several CMake enabled libraries that have their own respective build directories and have been installed:</div><div><br></div><div>LibA</div><div>LibB (depends on A)</div><div>LibC</div><div>LibD (depends on LibC and LibA)</div><div><br></div><div>I then create a new executable project ProjExe that depends on LibD. Now, I am working on LibA, LibB, LibC, LibD and ProjExe simultaneously (e.g. building up functionality in the libraries that the executable uses, fixing bugs etc.).</div><div><br></div><div>What I would like, is a way to ensure that when ProjExe is built, it first checks whether LibD is up-to-date (i.e. does it have any out of source build files?), if not, it builds LibD first. But LibD depends on LibC and LibA, and then LibD ensures that LibC and LibA are up-to-date before building itself.</div><div><br></div><div>Is something like this possible in CMake? This is  similar to the 'solution' concept in Visual C++ where a 'solution' can have several projects. ProjExe in the solution can be dependent on external libraries (like the above) and they are part of the 'solution' and are checked to be up-to-date before ProjExe is compiled/linked.</div><div><br></div><div>Thanks,</div><div>Saad</div></div>