aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 17:41:49 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 17:41:49 +0200
commit986c84c1db6d699771227b5e34659d015070d9b0 (patch)
treec6ea0403d4a96166f1e5c7e20b482edce3400c38
parent4866c0853e426d4049b6cbd0514b99e15e0eba78 (diff)
Fix: using property for global targets list
Change-Id: I42667730a021c2a5c59906ed915d81530db763cf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--reference/etc/macros.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index 2d04d34..5514679 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -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}"
)