summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst
blob: ef74ae26f0075ea303d1f199683f3a62ddce68ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CUDA_RESOLVE_DEVICE_SYMBOLS
---------------------------

CUDA only: Enables device linking for the specific library target

If set this will enable device linking on the library target. Normally
device linking is deferred until a shared library or executable is generated,
allowing for multiple static libraries to resolve device symbols at the same
time when they are used by a shared library or executable.

By default static library targets have this property is disabled,
while shared, module, and executable targets have this property enabled.

Note that device linking is not supported for :ref:`Object Libraries`.


For instance:

.. code-block:: cmake

  set_property(TARGET mystaticlib PROPERTY CUDA_RESOLVE_DEVICE_SYMBOLS ON)