summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-25 19:59:20 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-25 20:06:30 (GMT)
commit8124950f6ca7d5f5157e48bf3e881115c23bb224 (patch)
treeac00716a6a9675d9621bfbd3d3df2d3261faf707 /Modules
parent9575e6f57bf21244d48aaf041bb0c975c8dbcd49 (diff)
downloadCMake-8124950f6ca7d5f5157e48bf3e881115c23bb224.zip
CMake-8124950f6ca7d5f5157e48bf3e881115c23bb224.tar.gz
CMake-8124950f6ca7d5f5157e48bf3e881115c23bb224.tar.bz2
CUDA: Generalize CMAKE_{CUDA => <LANG>}_HOST_COMPILER variable docs
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckLanguage.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index 04e721c..1ad362f 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -25,7 +25,7 @@ or :command:`project` commands:
If this variable is already set, either explicitly or cached by
a previous call, the check is skipped.
- :variable:`CMAKE_CUDA_HOST_COMPILER`
+ :variable:`CMAKE_<LANG>_HOST_COMPILER`
This variable is set when ``<lang>`` is ``CUDA``.
If the check detects an explicit host compiler that is required for
@@ -34,12 +34,12 @@ or :command:`project` commands:
this variable will be cleared.
If this variable is already set, its value is preserved only if
- :variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>` is also set.
+ :variable:`CMAKE_<LANG>_COMPILER` is also set.
Otherwise, the check runs and overwrites
- :variable:`CMAKE_CUDA_HOST_COMPILER` with a new result.
- Note that :variable:`CMAKE_CUDA_HOST_COMPILER` documents it should
+ :variable:`CMAKE_<LANG>_HOST_COMPILER` with a new result.
+ Note that :variable:`CMAKE_<LANG>_HOST_COMPILER` documents it should
not be set without also setting
- :variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>` to a NVCC compiler.
+ :variable:`CMAKE_<LANG>_COMPILER` to a NVCC compiler.
For example: