From: Romain Forlot Date: Wed, 24 May 2017 16:38:54 +0000 (+0200) Subject: Fix: file already exists on build demo app X-Git-Tag: 3.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=16bc76e344cc7c0b70cbed122252d8601cb737c2;p=apps%2Flow-level-can-service.git Fix: file already exists on build demo app Change-Id: I956caaa06c82e5786114d2fac53c7532226fe7ba Signed-off-by: Romain Forlot --- diff --git a/CAN-binder/low-can-demo/CMakeLists.txt b/CAN-binder/low-can-demo/CMakeLists.txt index a2caac9..918920c 100644 --- a/CAN-binder/low-can-demo/CMakeLists.txt +++ b/CAN-binder/low-can-demo/CMakeLists.txt @@ -24,13 +24,13 @@ PROJECT_TARGET_ADD(low-can-demo) add_custom_command(OUTPUT dist.prod DEPENDS ${TARGET_NAME} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMAND touch dist.prod COMMAND [ -d "dist.prod" ] || npm install COMMAND [ -d "dist.prod" ] || gulp build-app-prod + COMMAND touch dist.prod COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR}) add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod) - + # Binder exposes a unique public entry point SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES LABELS "HTDOCS"