target_link_options DEVICE-LINKER prefix?
With at least recent LLVM clang versions, there is an -Xoffload-linker
flag to forward details to the offload-compute linker, similar as -Xlinker
acts for host side compute.
CMake already knows the difference with generator expressions $<DEVICE_LINK:...>
and $<HOST_LINK:...>
.
There is also in target_link_options
already a prefix for -Xlinker
abstraction of the form LINKER:
: https://cmake.org/cmake/help/v3.25/command/target_link_options.html#handling-compiler-driver-differences
Is it time to add an equivalent DEVICE-LINKER:
option?
Refs
Edited by Axel Huebl