Fix: populate targets not created
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 17 May 2017 16:41:43 +0000 (18:41 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 17 May 2017 16:41:43 +0000 (18:41 +0200)
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>
reference/etc/macros.cmake

index 5514679..da991db 100644 (file)
@@ -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)