diff options
author | Brad King <brad.king@kitware.com> | 2020-07-14 19:19:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-14 19:22:54 (GMT) |
commit | 7968d9d442d5582f12c9eb34e9883cc77bb1b068 (patch) | |
tree | efd844036dc796c6131446b2fdd75e869cca9b91 /Modules/CheckLanguage.cmake | |
parent | 2da778664d3e99ada4e67a5a1b9d377f92a9f75f (diff) | |
download | CMake-7968d9d442d5582f12c9eb34e9883cc77bb1b068.zip CMake-7968d9d442d5582f12c9eb34e9883cc77bb1b068.tar.gz CMake-7968d9d442d5582f12c9eb34e9883cc77bb1b068.tar.bz2 |
Help: Document CMAKE_CUDA_HOST_COMPILER as specific to NVIDIA nvcc
Explain the purpose of this variable and the conditions under which
it can be set. Point out that it should not be set explicitly without
also setting `CMAKE_CUDA_COMPILER` explicitly.
Issue: #20826
Diffstat (limited to 'Modules/CheckLanguage.cmake')
-rw-r--r-- | Modules/CheckLanguage.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake index d67d8d3..44387d4 100644 --- a/Modules/CheckLanguage.cmake +++ b/Modules/CheckLanguage.cmake @@ -20,7 +20,7 @@ test project. The result is cached in :variable:`CMAKE_<LANG>_COMPILER` as the compiler that was found, or ``NOTFOUND`` if the language cannot be enabled. For CUDA which can have an explicit host compiler, the cache :variable:`CMAKE_CUDA_HOST_COMPILER` variable will be set if it was required -for compilation. +for compilation (and cleared if it was not). Example: |