summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-14 15:03:15 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-14 15:06:48 (GMT)
commitc087072e21823703a0979c2fde3419846f80cc8a (patch)
tree167cddeb9a6891e4e1bbc3b78a73451b534cadfc /Modules
parent5cfc2e926af645840c6a0464451af18f08528879 (diff)
downloadCMake-c087072e21823703a0979c2fde3419846f80cc8a.zip
CMake-c087072e21823703a0979c2fde3419846f80cc8a.tar.gz
CMake-c087072e21823703a0979c2fde3419846f80cc8a.tar.bz2
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBISON.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBISON.cmake b/Modules/FindBISON.cmake
index 5de7a39..d40b806 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}