summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-26 15:10:01 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commite96553f68730a27dcb603dfe7253131ceeae69f0 (patch)
tree1abf3091ad372b87b487218e932cf3302c542469
parent2edb041ff534717979b72a7940284e7bf49a727f (diff)
Fix: output msg if build fail on remote populate
Change-Id: Id0ee4805854181dab1885af42f9c9f4603ad796f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--cmake/cmake.d/03-macros.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake
index 963dd75..a706773 100644
--- a/cmake/cmake.d/03-macros.cmake
+++ b/cmake/cmake.d/03-macros.cmake
@@ -355,8 +355,13 @@ macro(remote_targets_populate)
add_custom_target(remote-target-populate
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/target/*.sh
COMMAND rsync -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --archive --delete ${PROJECT_PKG_BUILD_DIR}/ ${RSYNC_TARGET}:${RSYNC_PREFIX}/${PROJECT_NAME}
- COMMENT "${REMOTE_LAUNCH}"
)
+
+ add_custom_command(TARGET remote-target-populate
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold ${REMOTE_LAUNCH}
+ )
+
add_dependencies(remote-target-populate populate)
endif()
endmacro(remote_targets_populate)