diff options
author | Forlot Romain [IoT.bzh] <claneys@iot.bzh> | 2017-03-22 15:17:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 15:17:25 +0100 |
commit | fe8235f257a009c911c63238885a47e0c3633293 (patch) | |
tree | a4f9b6e3a1502cfa81b9ce7d1bea6ac3cf3b2e19 | |
parent | 057c92dd1be77fc30db9115b63737225df9a6b57 (diff) |
Fix: make sure install execute sequentially
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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\")" ) |