Stephen Kelly b04f3b9a2a Create make rules for INTERFACE_LIBRARY targets.
The result is that the depends of the target are created.

So,

 add_library(somelib foo.cpp)
 add_library(anotherlib EXCLUDE_FROM_ALL foo.cpp)
 add_library(extra EXCLUDE_FROM_ALL foo.cpp)
 target_link_libraries(anotherlib extra)

 add_library(iface INTERFACE)
 target_link_libraries(iface INTERFACE anotherlib)

Executing 'make iface' will result in the anotherlib and extra targets
being made.

Adding a regular executable to the INTERFACE of an INTERFACE_LIBRARY
will not result in the executable being built with 'make iface' because
of the logic in cmComputeTargetDepends::AddTargetDepend.

So far, this is implemented only for the Makefile generator. Other
generators will follow if this feature is possible for them.

Make INTERFACE_LIBRARY targets part of the all target by default.
Test this by building the all target and making the expected library
EXCLUDE_FROM_ALL.
2013-10-21 09:46:27 -04:00
..
2013-10-16 09:22:36 -04:00
2013-10-16 09:22:37 -04:00
2013-10-16 00:01:08 -04:00
2013-05-22 12:52:12 -04:00
2013-10-16 09:22:36 -04:00
2013-10-15 10:47:38 -04:00
2011-09-15 16:20:33 +02:00
2012-09-28 17:00:52 -04:00
2012-09-28 17:00:52 -04:00
2012-02-02 23:40:21 +00:00
2013-10-15 10:47:38 -04:00
2013-10-16 09:22:36 -04:00
2013-10-16 09:22:36 -04:00