summaryrefslogtreecommitdiffstats
path: root/templates/html5/etc/macros.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 17:42:07 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 17:42:07 +0200
commiteeaa09a9b9045d00484e3f476c577e9117492814 (patch)
tree30822eadcd924d9e1b96109bd2c479ddb4e6e51f /templates/html5/etc/macros.cmake
parent986c84c1db6d699771227b5e34659d015070d9b0 (diff)
Update templates
Change-Id: Iff329f333f3b6f81471a6c5ada5acb0418523f21 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'templates/html5/etc/macros.cmake')
-rw-r--r--templates/html5/etc/macros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/html5/etc/macros.cmake b/templates/html5/etc/macros.cmake
index 98ea3b5..5514679 100644
--- a/templates/html5/etc/macros.cmake
+++ b/templates/html5/etc/macros.cmake
@@ -30,7 +30,7 @@
macro(PROJECT_TARGET_ADD TARGET_NAME)
set_property(GLOBAL APPEND PROPERTY PROJECT_TARGETS ${TARGET_NAME})
set(TARGET_NAME ${TARGET_NAME})
-endmacro()
+endmacro(PROJECT_TARGET_ADD)
# Check GCC minimal version version
if (gcc_minimal_version)
@@ -250,7 +250,8 @@ endif()
# Print developer helper message when build is done
# -------------------------------------------------------
macro(project_closing_msg)
- if(CLOSING_MESSAGE AND PROJECT_TARGETS)
+ get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS)
+ if(CLOSING_MESSAGE AND ${PROJECT_TARGETS})
add_custom_target(${PROJECT_NAME}_build_done ALL
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "++ ${CLOSING_MESSAGE}"
)