[cmake-developers] Explicit custom command BYPRODUCTS
Brad King
brad.king at kitware.com
Mon Nov 17 11:47:43 EST 2014
Hi Folks,
Picking up from this old thread:
explicit custom command side-effects (was: Severe regression caused by #14972 fixes)
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/11207/focus=11225
and this issue:
Add explicit specification of custom command side effect outputs
http://www.cmake.org/Bug/view.php?id=14963
On 10/08/2014 10:26 AM, Brad King wrote:
> Both add_custom_target and add_custom_command can run operations that
> produce side-effects. Both commands need a way to specify any side
> effects they produce. Perhaps a new option like "GENERATES" can be
> added for this.
> The GENERATES value(s) would be marked with the GENERATED property.
> For Ninja we would add extra outputs to the generated rule and
> ask Ninja to restat them to avoid the always-rebuild case. For
> other generators no additional build system content is needed.
I chose the name "BYPRODUCTS" for the option and drafted support:
Add an option for explicit BYPRODUCTS of custom commands (#14963)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e15a7075
ExternalProject: Add options to specify BYPRODUCTS (#14963)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=557aef0b
This was in 'next' over the weekend and is clean on the dashboard.
To those that encountered problems requiring this feature, please
try it out to see if it works correctly for your use case.
Thanks,
-Brad
More information about the cmake-developers
mailing list