summaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-09 13:17:16 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commitddb9122bcd78122a0de42d1f141d3fef4eb55701 (patch)
tree6ebe3e5a3dc15c284ae15a26383686cd9543845f /reference
parente91c74ca73ed94a943edc3e0722fe25a16c5dbf6 (diff)
Rework dependencies about custom target to be more CMake compliant
CMake dependencies about custom target is to added with add_dependencies() DEPENDS options is more for output file dependencies. Change-Id: I3fb6b17e0de97bbb495471d50562d41f6ab549f0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference')
-rw-r--r--reference/etc/macros.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index b89094a..210ed91 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -243,13 +243,14 @@ if(EXTRA_DEPENDENCIES_ORDER)
)
endif()
-# Print developer helper message when everything is done
+# Print developer helper message when build is done
# -------------------------------------------------------
macro(project_closing_msg)
if(CLOSING_MESSAGE AND GLOBAL_TARGET_LIST)
- add_custom_target(${PROJECT_NAME}_done ALL
- DEPENDS ${DEPENDENCIES_TARGET} ${GLOBAL_TARGET_LIST}
+ add_custom_target(${PROJECT_NAME}_build_done ALL
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "++ ${CLOSING_MESSAGE}"
)
+ add_dependencies(${PROJECT_NAME}_build_done
+ ${DEPENDENCIES_TARGET} ${GLOBAL_TARGET_LIST})
endif()
endmacro()