summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}"
)