Skip to content

CUDA: Propagate the different objects forms to the device linker

Consider the target_link_libraries line of:

target_link_libraries(consumer PRIVATE $<TARGET_OBJECTS:A> B)

If both A and B are OBJECT libraries we would expect them to be placed on the device link line. But currently CMake fails differently for each generator. The VisualStudio generators would properly propagate A while Ninja and Makefile would properly propagate B.

This PR corrects all the generators to propagate the objects from both A and B

Merge request reports