From f3f09f937af78a899f1e0aa8a1ef2ac346618d1d Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 17 May 2017 18:41:43 +0200 Subject: [PATCH] Fix: populate targets not created It is a consequence of using property, we have to retrieve it before test it Change-Id: If617bb673cd348dcc7d193878350a4b2c09dee05 Signed-off-by: Romain Forlot --- reference/etc/macros.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake index 5514679..da991db 100644 --- a/reference/etc/macros.cmake +++ b/reference/etc/macros.cmake @@ -47,6 +47,7 @@ endmacro(defstr) # WGT packaging macro(project_targets_populate) add_custom_target(MAIN_POPULATE) + get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS) foreach(TARGET ${PROJECT_TARGETS}) get_target_property(T ${TARGET} LABELS) if(T) -- 2.16.6