summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-14 10:03:15 -0500
committerBrad King <brad.king@kitware.com>2016-11-14 10:06:48 -0500
commitc087072e21823703a0979c2fde3419846f80cc8a (patch)
tree167cddeb9a6891e4e1bbc3b78a73451b534cadfc
parent5cfc2e926af645840c6a0464451af18f08528879 (diff)
downloadcmake-c087072e21823703a0979c2fde3419846f80cc8a.tar.gz
FindBISON: Do not rebuild every time when not VERBOSE
Since commit v3.7.0-rc1~348^2~3 (FindBISON: Change usage of [VERBOSE <file>] to [VERBOSE [<file>]], 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
-rw-r--r--Modules/FindBISON.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBISON.cmake b/Modules/FindBISON.cmake
index 5de7a39a83..d40b80639a 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}