diff options
author | Brad King <brad.king@kitware.com> | 2023-09-25 19:59:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-25 20:06:30 (GMT) |
commit | 8124950f6ca7d5f5157e48bf3e881115c23bb224 (patch) | |
tree | ac00716a6a9675d9621bfbd3d3df2d3261faf707 /Modules | |
parent | 9575e6f57bf21244d48aaf041bb0c975c8dbcd49 (diff) | |
download | CMake-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.cmake | 10 |
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: |