summaryrefslogtreecommitdiffstats
path: root/templates/service
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:43:49 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:43:49 +0200
commit6993026755563379e964966ee7fc73923a21828d (patch)
tree02384f64bf4e0be896066204701e1ba8f4a54ef6 /templates/service
parent55538fbac16de3f709547a6b70ae07810cc3ba25 (diff)
Update template to the referencedab_3.99.1dab/3.99.13.99.1
Change-Id: I32b9911fa0f8b294e3f38ce88de2ed58a9b57c71 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/etc/config.cmake2
-rw-r--r--templates/service/etc/macros.cmake4
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/service/etc/config.cmake b/templates/service/etc/config.cmake
index 0d8ec9f..e614619 100644
--- a/templates/service/etc/config.cmake
+++ b/templates/service/etc/config.cmake
@@ -18,7 +18,7 @@
# Project Info
# ------------------
-set(NAME service-example)
+set(PROJECT_NAME service-example)
set(VERSION "0.0")
set(PROJECT_PRETTY_NAME "Service binding Example")
set(PROJECT_DESCRIPTION "service binding AGL application example")
diff --git a/templates/service/etc/macros.cmake b/templates/service/etc/macros.cmake
index 5514679..18af27e 100644
--- a/templates/service/etc/macros.cmake
+++ b/templates/service/etc/macros.cmake
@@ -47,6 +47,7 @@ endmacro(defstr)
# WGT packaging
macro(project_targets_populate)
add_custom_target(MAIN_POPULATE)
+ get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS)
foreach(TARGET ${PROJECT_TARGETS})
get_target_property(T ${TARGET} LABELS)
if(T)
@@ -250,8 +251,9 @@ endif()
# Print developer helper message when build is done
# -------------------------------------------------------
macro(project_closing_msg)
+ get_property(PROJECT_TARGETS_SET GLOBAL PROPERTY PROJECT_TARGETS SET)
get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS)
- if(CLOSING_MESSAGE AND ${PROJECT_TARGETS})
+ if(CLOSING_MESSAGE AND ${PROJECT_TARGETS_SET})
add_custom_target(${PROJECT_NAME}_build_done ALL
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "++ ${CLOSING_MESSAGE}"
)