Skip to content

Commit 461511e

Browse files
Marti Bolivarcarlescufi
authored andcommitted
cmake: fix 'ninja flash' et al with multiple boards plugged in
Fixes: 5958 Ninja by default will suppress command output and input. This is a problem for the 'flash', 'debug', etc. targets, which may need to interact with the user (and which display interactive output like progress bars). To fix this, add the USES_TERMINAL option to their target definitions. This puts them in the console pool on Ninja, allowing the commands to interact with the console. References: https://ninja-build.org/manual.html#_the_literal_console_literal_pool https://cmake.org/cmake/help/v3.8/command/add_custom_target.html Signed-off-by: Marti Bolivar <[email protected]>
1 parent 0e1c6e1 commit 461511e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/flash/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ foreach(target flash debug debugserver)
7070
${cmd}
7171
COMMENT
7272
${comment}
73+
USES_TERMINAL
7374
)
7475
endforeach()

0 commit comments

Comments
 (0)