summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-09 13:13:19 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commite91c74ca73ed94a943edc3e0722fe25a16c5dbf6 (patch)
tree2cddfe3b304b82762dbb56a3b65200360a60e21c
parent1e498976cfe8e9ad88cea83bcba5e119a726b3fc (diff)
Fix: make CACHED INTERNAL variable to be visible.
Else scope isn't good and GLOBAL_TARGET_LIST is empty when testing in closing message macro. Change-Id: I1a490d4b4c909996763f9c0b58387dae8e44e1b5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--reference/etc/macros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index b8c4e06..b89094a 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -34,7 +34,7 @@ macro(PROJECT_TARGET_ADD TARGET_NAME)
# Cmake does not maintain targets list before 3.7
# -------------------------------------------------
if(${CMAKE_VERSION} VERSION_LESS 3.7)
- set(GLOBAL_TARGET_LIST ${PROJECT_TARGETS})
+ set(GLOBAL_TARGET_LIST ${PROJECT_TARGETS} CACHE INTERNAL "Hold project targets")
else()
get_property(GLOBAL_TARGET_LIST GLOBAL PROPERTY GlobalTargetList)
endif()