From: Romain Forlot Date: Tue, 23 May 2017 20:54:55 +0000 (+0200) Subject: Fix a dependency problem with populate htdocs targets. X-Git-Tag: 3.99.1~9 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f30dc1a18dbb32880bdc0c9021b756c0f846ad53;p=apps%2Flow-level-can-service.git Fix a dependency problem with populate htdocs targets. Update modif date on output dir to make update on populate happens too. Change-Id: Ie1481d4231075a83bebde79ebf41c1f11b73ac21 Signed-off-by: Romain Forlot --- diff --git a/CAN-binder/low-can-demo/CMakeLists.txt b/CAN-binder/low-can-demo/CMakeLists.txt index 136053b..a2caac9 100644 --- a/CAN-binder/low-can-demo/CMakeLists.txt +++ b/CAN-binder/low-can-demo/CMakeLists.txt @@ -24,6 +24,7 @@ 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 cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR})