From e91c74ca73ed94a943edc3e0722fe25a16c5dbf6 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 9 May 2017 13:13:19 +0200 Subject: 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 --- reference/etc/macros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit 1.2.3-korg