summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-30 13:49:47 +1000
committerDamien George <damien@micropython.org>2022-06-30 13:49:47 +1000
commitf1b5761ced7f19676b744ef24c201fb0ff084c2a (patch)
tree0205db1925a130762d52ec2361c7c7d3a2abdce0 /py
parent797a83ac3ef8f9bbf67faf59da665b5509db428b (diff)
py/mkrules.cmake: Improve printing of git-submodules error.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/py/mkrules.cmake b/py/mkrules.cmake
index d0dc01962..4d0bbd22a 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()