From ac736a72ce7ae7a5c88f2da70f125ae3532cc900 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 18 May 2017 01:05:16 +0200 Subject: Fix: cmake doesn"t create populate targets. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CAN-binder/etc/macros.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'CAN-binder') 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) -- cgit 1.2.3-korg