[cmake-developers] [CMake] Obtaining header file dependencies of a source file manually

Dan Liew dan at su-root.co.uk
Tue Dec 1 14:41:44 EST 2015


>> There is an alternative which I suggested in the post. Have CMake
>> determine the dependencies of the files passed to ``IMPLICIT_DEPENDS``
>> at configure time and spit that into the build files of the generator
>> (that would work for any generator). Then have any changes made to the
>> files passed to ``IMPLICIT_DEPENDS`` trigger a reconfigure so that the
>> dependencies can be recomputed.
>
> Perhaps, but after regenerating the project the build tool will not
> re-load the build files and start building again.  That will take
> an additional invocation.  The number of iterations required is
> bounded only by the depth of dependency chains.

I don't understand what you mean. What do you mean by "build tool" here?
I also don't see why you would need to reconfigure multiple times.


More information about the cmake-developers mailing list