From fe8235f257a009c911c63238885a47e0c3633293 Mon Sep 17 00:00:00 2001 From: "Forlot Romain [IoT.bzh]" Date: Wed, 22 Mar 2017 15:17:25 +0100 Subject: Fix: make sure install execute sequentially --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf95ab0..4c4132b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,6 +117,7 @@ add_custom_target(widget ALL DEPENDS ${PROJECT_NAME}.wgt) #message(STATUS "Creation of ${PROJECT_NAME}.wgt package for AppFW") ########################################################################### install(CODE "execute_process( - COMMAND scp -r ${CMAKE_SOURCE_DIR} src/${PROJECT_NAME}.wgt ${TARGET}:/tmp + COMMAND scp -r src/${PROJECT_NAME}.wgt ${CMAKE_SOURCE_DIR} ${TARGET}:/tmp)" + CODE "execute_process( COMMAND ssh ${TARGET} \"/usr/bin/afm-util remove ${PROJECT_NAME}@${PROJECT_VERSION} && /usr/bin/afm-util install /tmp/${PROJECT_NAME}.wgt\")" ) -- cgit 1.2.3-korg