From f1b5761ced7f19676b744ef24c201fb0ff084c2a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 30 Jun 2022 13:49:47 +1000 Subject: [PATCH] py/mkrules.cmake: Improve printing of git-submodules error. Signed-off-by: Damien George --- py/mkrules.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/mkrules.cmake b/py/mkrules.cmake index d0dc019625..4d0bbd22ad 100644 --- a/py/mkrules.cmake +++ b/py/mkrules.cmake @@ -182,6 +182,9 @@ endif() # Update submodules if(ECHO_SUBMODULES) # If cmake is run with GIT_SUBMODULES defined on command line, process the port / board - # settings then print the final GIT_SUBMODULES variable as a fatal error and exit. - message(FATAL_ERROR "GIT_SUBMODULES=${GIT_SUBMODULES}") + # settings then print the final GIT_SUBMODULES variable and exit. + # Note: the GIT_SUBMODULES is done via echo rather than message, as message splits + # the output onto multiple lines + execute_process(COMMAND ${CMAKE_COMMAND} -E echo "GIT_SUBMODULES=${GIT_SUBMODULES}") + message(FATAL_ERROR "Done") endif()