[cmake-developers] [PATCH] Discussion needed: FindBISON: refine VERBOSE feature of BISON_TARGET

Brad King brad.king at kitware.com
Mon Jun 22 09:39:07 EDT 2015


On 06/21/2015 09:06 AM, 정언 wrote:
> internal macro defines a custom command that makes a copy of the
> default named report file to the specified <file> path. The custom
> command is not invoked until any other command requires the <file>,
> for example, from its dependencies.

This could be fixed by moving the copy logic to a second COMMAND
argument to the add_custom_command for the actual bison invocation.

> It is possible to specify a non-default report file path in command
> line. The bison command line option `--report-file` is used to do
> that.

I think that can be added as a separate REPORT_FILE option that is
considered separately from the VERBOSE option and uses --report-file.
It could be an error if the discovered bison tool does not support
the option.

Thanks,
-Brad



More information about the cmake-developers mailing list