Skip to content

FindBISON: Fix "multiple rules generate" error on VERBOSE output

Brad King requested to merge brad.king/cmake:FindBISON-fix-verbose-file into master

When BISON_TARGET is called with both

VERBOSE <extra-file> REPORT_FILE <file>

we add a custom command to copy <file> to <extra-file>. The change in !250 (merged) incorrectly listed the extra file as an output of the main bison invocation custom command, but it is actually produced by the separate copy command. Fix the logic to always generate <file> as an output of the bison command and <extra-file> as an output of the copy command.

Fixes: #18433 (closed)

Edited by Brad King

Merge request reports