summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-17 14:20:53 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-17 14:51:39 (GMT)
commit00e13993fde86d3674882aa9e63c46b4e1041462 (patch)
tree2f6da1b00ece1c746c15ef404b1bad5245e47b7c /Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst
parent8e6d6337cdfa62dd5412057c6dcb6d7c23709f6e (diff)
downloadCMake-00e13993fde86d3674882aa9e63c46b4e1041462.zip
CMake-00e13993fde86d3674882aa9e63c46b4e1041462.tar.gz
CMake-00e13993fde86d3674882aa9e63c46b4e1041462.tar.bz2
CUDA: Add CMAKE_CUDA_SEPARABLE_COMPILATION variable
Use its value to initialize the `CUDA_SEPARABLE_COMPILATION` target property when targets are created. Fixes: #17478
Diffstat (limited to 'Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst')
-rw-r--r--Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst b/Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst
index 1c7dd80..d306d7f 100644
--- a/Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst
+++ b/Help/prop_tgt/CUDA_SEPARABLE_COMPILATION.rst
@@ -11,3 +11,7 @@ For instance:
.. code-block:: cmake
set_property(TARGET myexe PROPERTY CUDA_SEPARABLE_COMPILATION ON)
+
+This property is initialized by the value of the
+:variable:`CMAKE_CUDA_SEPARABLE_COMPILATION` variable if it is set when a
+target is created.