mirror of
https://github.com/reactos/CMake.git
synced 2025-03-06 02:48:38 +00:00

If a static library has the property CUDA_RESOLVE_DEVICE_SYMBOLS enabled it will now perform the device link step. The normal behavior is to delay calling device link until the static library is consumed by a shared library or an executable.
16 lines
485 B
ReStructuredText
16 lines
485 B
ReStructuredText
CUDA_RESOLVE_DEVICE_SYMBOLS
|
|
---------------------------
|
|
|
|
CUDA only: Enables device linking for the specific static library target
|
|
|
|
If set this will enable device linking on this static 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.
|
|
|
|
For instance:
|
|
|
|
.. code-block:: cmake
|
|
|
|
set_property(TARGET mystaticlib PROPERTY CUDA_RESOLVE_DEVICE_SYMBOLS ON)
|