summaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-17 18:41:43 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commitf88e9af74cfc22019bb47f48dc915139ba0437c7 (patch)
tree6e202cd6a720500758dda78d1e494cdebadbda2c /reference
parent66a510419a9943c4a58f134442837823c68d61b7 (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')
-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)