]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Makefile.cmake.in: fix automatic host deps calculation
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 26 Feb 2012 07:24:23 +0000 (08:24 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 26 Feb 2012 07:24:23 +0000 (08:24 +0100)
We need similar handling as in autotools because of the host-cmake addition.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.cmake.in

index 38e459b80cdae79b4641a80c3ca316e6b705f508..4a4ad6e2d43c85dcd0356b368ca1d6fdc8c07a6b 100644 (file)
@@ -96,6 +96,10 @@ endef
 endif
 endif
 
+# This must be repeated from GENTARGETS_INNER, otherwise we only get
+# host-cmake in _DEPENDENCIES because of the following line
+$(2)_DEPENDENCIES ?= $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))
+
 $(2)_DEPENDENCIES += host-cmake
 
 #