diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-17 17:41:49 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:20 +0200 |
commit | 946c5f18b1e1de50638dee6895df66023f804992 (patch) | |
tree | da66ef70fa7e61563216228cc2d3815c3b335b94 | |
parent | d8cba84ed2447afd062d79a0999177aa0e64b8a5 (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.cmake | 3 |
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}" ) |