diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-30 15:34:55 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-30 19:45:14 (GMT) |
commit | 8c57f7b45e1b8e6325e80b54d508a153f5543265 (patch) | |
tree | f5d990ce776ad4651f527e45a9055e75f3befa47 /Help/prop_tgt | |
parent | b96d7418b700e1c35dcd2a9e5cdab092fef1b4e2 (diff) | |
download | CMake-8c57f7b45e1b8e6325e80b54d508a153f5543265.zip CMake-8c57f7b45e1b8e6325e80b54d508a153f5543265.tar.gz CMake-8c57f7b45e1b8e6325e80b54d508a153f5543265.tar.bz2 |
Help: Clarify CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS behavior
Fixes: #24373
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst b/Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst index 819ce3e..58072e1 100644 --- a/Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst +++ b/Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst @@ -14,8 +14,13 @@ 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. +If this property or :variable:`CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS` is unset, +static libraries are treated as if it is disabled while shared, module, +and executable targets behave as if it is on. + +If :variable:`CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS` has been defined, +this property is initialized to the value the variable and overriding +the default behavior. Note that device linking is not supported for :ref:`Object Libraries`. |