summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-31 15:50:03 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-07-31 15:50:20 (GMT)
commiteb9195e9ef6fd299b25d44b966129c587ec46e2d (patch)
tree85f6f90d5d3a2929ddb6c61477f0aabc04461b18 /Help
parent7518fd6074c7544fb7f4694b102514fb0cc9f42c (diff)
parentbe03265fa0e9134f84466e4aa92e62afb78cbc83 (diff)
downloadCMake-eb9195e9ef6fd299b25d44b966129c587ec46e2d.zip
CMake-eb9195e9ef6fd299b25d44b966129c587ec46e2d.tar.gz
CMake-eb9195e9ef6fd299b25d44b966129c587ec46e2d.tar.bz2
Merge topic 'CheckLanguage-doc-cuda-host'
be03265fa0 Help: Explicitly note that projects should not set CMAKE_CUDA_HOST_COMPILER 13d78bbf16 CheckLanguage: Document that CMAKE_CUDA_HOST_COMPILER should not be set alone cfd92dece3 CheckLanguage: Modernize documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8670
Diffstat (limited to 'Help')
-rw-r--r--Help/variable/CMAKE_CUDA_HOST_COMPILER.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_CUDA_HOST_COMPILER.rst b/Help/variable/CMAKE_CUDA_HOST_COMPILER.rst
index 9817b1a..6e2d756 100644
--- a/Help/variable/CMAKE_CUDA_HOST_COMPILER.rst
+++ b/Help/variable/CMAKE_CUDA_HOST_COMPILER.rst
@@ -26,4 +26,11 @@ is read-only and changes to it are undefined behavior.
.. note::
+ Projects should not try to set ``CMAKE_CUDA_HOST_COMPILER`` to match
+ :variable:`CMAKE_CXX_COMPILER <CMAKE_<LANG>_COMPILER>` themselves.
+ It is the end-user's responsibility, not the project's, to ensure that
+ the C++ and CUDA compilers target the same ABI.
+
+.. note::
+
Ignored when using :ref:`Visual Studio Generators`.