aboutsummaryrefslogtreecommitdiffstats
path: root/reference/etc/macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'reference/etc/macros.cmake')
-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()