From c087072e21823703a0979c2fde3419846f80cc8a Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Nov 2016 10:03:15 -0500 Subject: [PATCH] FindBISON: Do not rebuild every time when not VERBOSE Since commit v3.7.0-rc1~348^2~3 (FindBISON: Change usage of [VERBOSE ] to [VERBOSE []], 2016-07-16) we always list the VERBOSE output file as an output of our custom command even if the option is not used. This causes the rule to re-run every time (e.g. with Ninja). Revert one hunk from that change (that looks incorrect) to fix it. Closes: #16426 --- Modules/FindBISON.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindBISON.cmake b/Modules/FindBISON.cmake index 5de7a39a8..d40b80639 100644 --- a/Modules/FindBISON.cmake +++ b/Modules/FindBISON.cmake @@ -228,7 +228,7 @@ if(BISON_EXECUTABLE) list(APPEND BISON_TARGET_outputs "${BISON_TARGET_output_header}") add_custom_command(OUTPUT ${BISON_TARGET_outputs} - ${BISON_TARGET_verbose_file} + ${BISON_TARGET_extraoutputs} COMMAND ${BISON_EXECUTABLE} ${BISON_TARGET_cmdopt} -o ${BisonOutput} ${BisonInput} VERBATIM DEPENDS ${BisonInput}