diff options
author | Brad King <brad.king@kitware.com> | 2023-01-31 14:35:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-31 14:35:31 (GMT) |
commit | 29fb1367b6bbd379c5422eb5d0918a660e327a5f (patch) | |
tree | 09e52709e587f8066dde4646f6c4044b1479984a /Help | |
parent | a5e29862442794ed3a295abdc67868978031edc9 (diff) | |
parent | 8c57f7b45e1b8e6325e80b54d508a153f5543265 (diff) | |
download | CMake-29fb1367b6bbd379c5422eb5d0918a660e327a5f.zip CMake-29fb1367b6bbd379c5422eb5d0918a660e327a5f.tar.gz CMake-29fb1367b6bbd379c5422eb5d0918a660e327a5f.tar.bz2 |
Merge topic 'doc-CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS'
8c57f7b45e Help: Clarify CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS behavior
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !8136
Diffstat (limited to 'Help')
-rw-r--r-- | Help/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.rst | 9 | ||||
-rw-r--r-- | Help/variable/CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.rst | 4 |
2 files changed, 10 insertions, 3 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`. diff --git a/Help/variable/CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.rst b/Help/variable/CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.rst index 474baee..bd56911 100644 --- a/Help/variable/CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.rst +++ b/Help/variable/CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.rst @@ -4,5 +4,7 @@ CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS .. versionadded:: 3.16 Default value for :prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` target -property. This variable is used to initialize the property on each target as +property when defined. By default this variable is not defined. + +This variable is used to initialize the property on each target as it is created. |