[CMake] Postprocessing output of add_custom_command

Tyler Roscoe tyler at cryptio.net
Mon Dec 21 17:22:41 EST 2009


On Mon, Dec 21, 2009 at 11:50:43PM +0200, Iwan Aucamp wrote:
> To be more precise I am trying to use objdump + objcopy to add a section 
> to a target if it does not already exist - if objdump -h outputs the 
> header to be added then objcopy is not performed - but if it does not 
> output the header to be added then objcopy is done.

I would just do all this in a script and call the script from a single
custom_command. What benefit do you hope to get by having two separate
build targets that work together to accomplish the same thing?

tyler


More information about the CMake mailing list