aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-26 15:10:01 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-26 15:10:01 +0200
commit454f835401b01a4c32b845e55eb14a19bb66e9bd (patch)
tree2747a0a63493de032d70798e6bde19f3329365f0 /cmake/cmake.d
parent36dca05828b8b2ba7231b9096a769c9dc523477d (diff)
Fix: output msg if build fail on remote populate
Change-Id: Id0ee4805854181dab1885af42f9c9f4603ad796f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d')
-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)