summaryrefslogtreecommitdiffstats
path: root/reference/etc
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:41:43 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:41:43 +0200
commitf3f09f937af78a899f1e0aa8a1ef2ac346618d1d (patch)
treef47d3f7bc24ff6ef707f691051e495a835fcb8f2 /reference/etc
parentfa6689f9545d33b7d170bffbef67807e8b594e53 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'reference/etc')
-rw-r--r--reference/etc/macros.cmake1
1 files changed, 1 insertions, 0 deletions
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)