aboutsummaryrefslogtreecommitdiffstats
path: root/templates/html5
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html5')
-rw-r--r--templates/html5/etc/config.cmake2
-rw-r--r--templates/html5/etc/macros.cmake4
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/html5/etc/config.cmake b/templates/html5/etc/config.cmake
index a9bb0a7..a6035fa 100644
--- a/templates/html5/etc/config.cmake
+++ b/templates/html5/etc/config.cmake
@@ -18,7 +18,7 @@
# Project Info
# ------------------
-set(NAME HTML5-example)
+set(PROJECT_NAME HTML5-example)
set(VERSION "0.0")
set(PROJECT_PRETTY_NAME "HTML5 Example")
set(PROJECT_DESCRIPTION "HTML5 AGL application example")
diff --git a/templates/html5/etc/macros.cmake b/templates/html5/etc/macros.cmake
index 5514679..18af27e 100644
--- a/templates/html5/etc/macros.cmake
+++ b/templates/html5/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}"
)