summaryrefslogtreecommitdiffstats
path: root/reference/etc
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:42:15 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:42:15 +0200
commit4d29be205e65c2eb62c729d4beb860870a2662e5 (patch)
tree01303410511ec786722a278d75453034d38c48e5 /reference/etc
parentf3f09f937af78a899f1e0aa8a1ef2ac346618d1d (diff)
Testing correctly a property
Change-Id: I86259e19ec58df81591cd2491ce560ce932b5406 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference/etc')
-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 da991db..18af27e 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -251,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}"
)