From: Romain Forlot Date: Wed, 17 May 2017 23:05:16 +0000 (+0200) Subject: Fix: cmake doesn"t create populate targets. X-Git-Tag: 5.0.2~199 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=ac736a72ce7ae7a5c88f2da70f125ae3532cc900;p=apps%2Fagl-service-can-low-level.git 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 --- diff --git a/CAN-binder/etc/macros.cmake b/CAN-binder/etc/macros.cmake index 7646c4af..8eed237e 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)