CMake/Tests/CMakeCommands/target_link_libraries
Stephen Kelly 48a4cf2182 Revert "Allow target_link_libraries with IMPORTED targets."
This reverts commit 9cfe4f1b76.

It turns out that correctly adding the content to
the IMPORTED_LINK_INTERFACE_LIBARIES_<CONFIG> of an upstream target
from the buildsystem of a downstream project is not simple.

If upstream had added the INTERFACE content, the config-specific
properties would  be determined by the DEBUG_CONFIGURATIONS of
upstream.

As downstream, we don't have any information about what
the DEBUG_CONFIGURATIONS of upstream were, so we can't determine
which configuration-specific properties to populate. The best we can do
is add it to all of them or add it to the ones downstream considers to
be DEBUG_CONFIGURATIONS, neither of which is a good solution.

So, removing the porcelain API for that is the best approach. A human
can still determine which properties to populate and use
the set_property API to populate the desired properies.

Another solution to this would be for upstream targets to publish
what they consider DEBUG_CONFIGURATIONS, but that can be added in
a future release.
2013-01-21 12:19:39 +01:00
..
subdir Add CMAKE_BUILD_INTERFACE_INCLUDES build-variable. 2013-01-08 14:14:27 -05:00
CMakeLists.txt Revert "Allow target_link_libraries with IMPORTED targets." 2013-01-21 12:19:39 +01:00
depA.cpp target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depA.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depB.cpp Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
depB.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depC.cpp GenerateExportHeader test: add newlines before end of file 2012-01-18 00:01:08 +01:00
depC.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depD.cpp Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
depD.h Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
depIfaceOnly.cpp Make targets depend on the link interface of their dependees. 2013-01-03 13:31:50 -05:00
depIfaceOnly.h Make targets depend on the link interface of their dependees. 2013-01-03 13:31:50 -05:00
libgenex.cpp Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
libgenex.h Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
targetA.cpp Add CMAKE_BUILD_INTERFACE_INCLUDES build-variable. 2013-01-08 14:14:27 -05:00
targetB.cpp Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00