summaryrefslogtreecommitdiffstats
path: root/CAN-binder
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-18 01:05:16 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 11:36:43 +0200
commitac736a72ce7ae7a5c88f2da70f125ae3532cc900 (patch)
treeb1984ad96094a5d90dc92c383f06866e9745f99d /CAN-binder
parentf9e933a9790baee7c820c8e812545cc1e0f85131 (diff)
Fix: cmake doesn"t create populate targets.
Use of property make that the variable PROJECTçTARGETS isn't available until we retrieve it with get_property Change-Id: I69845425a11af6408dbced4d13c2d04c5181c0be Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder')
-rw-r--r--CAN-binder/etc/macros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/CAN-binder/etc/macros.cmake b/CAN-binder/etc/macros.cmake
index 7646c4a..8eed237 100644
--- a/CAN-binder/etc/macros.cmake
+++ b/CAN-binder/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)