mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
properties LINK_OPTIONS and INTERFACE_LINK_OPTIONS are propagated to the device link step. To control which options are selected for normal link and device link steps, the $<DEVICE_LINK> and $<HOST_LINK> generator expressions can be used. Fixes: #18265
11 lines
583 B
Plaintext
11 lines
583 B
Plaintext
|
|
When a device link step is involved, which is controlled by
|
|
:prop_tgt:`CUDA_SEPARABLE_COMPILATION` and
|
|
:prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties, the raw options will be
|
|
delivered to the host and device link steps (wrapped in ``-Xcompiler`` or
|
|
equivalent for device link). Options wrapped with ``$<DEVICE_LINK:...>``
|
|
:manual:`generator expression <cmake-generator-expressions(7)>` will be used
|
|
only for the device link step. Options wrapped with ``$<HOST_LINK:...>``
|
|
:manual:`generator expression <cmake-generator-expressions(7)>` will be used
|
|
only for the host link step.
|