[CMake] Question about best practices for large Multi-stage builds

Matthew Woehlke matthew.woehlke at kitware.com
Mon Aug 26 17:36:07 EDT 2013


On 2013-08-26 16:37, Thomas Taranowski wrote:
> I tend to agree with you that 2 would not generally be a target.  However,
> there are external factors at play that I haven't mentioned.  For one, in
> our environment we'd like to pull the auto generated code into a code
> review tool, and to mechanize that we have a commit daemon running that can
> run the auto generate rule, and commit the difference to a review-only
> branch for inspection purposes.  It's true that it could be accomplished by
> doing the all build, and grabbing the output after the build was complete,
> it just takes alot longer.

In that case, you could always add another custom target that depends on 
all of your generated output files (as well as the targets using the 
same depending on them), similar to a 'build all third party' target.

-- 
Matthew



More information about the CMake mailing list