diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-09 13:13:19 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-09 13:13:19 +0200 |
commit | d8e7184bad0fe77e5cdd95b5cf93b8d8fdecc88a (patch) | |
tree | 9620176fc493c9355482f34af94684d56e67608c /reference/etc | |
parent | 7831e0165ae752c15474d4baa897c41958750f77 (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>
Diffstat (limited to 'reference/etc')
-rw-r--r-- | reference/etc/macros.cmake | 2 |
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() |