summaryrefslogtreecommitdiffstats
path: root/Help/envvar
diff options
context:
space:
mode:
authorpeterjc123 <peter_jiachen@163.com>2018-09-15 09:14:38 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-18 15:41:47 (GMT)
commit8085799ce3a311e3f0f3c2f2119ae0dcb8b2e0a3 (patch)
tree4068c04c502c01b3aaff0d226e49446ec414189f /Help/envvar
parent18eb4c637a6fb35bf8207e5f39d3e701fdcf973b (diff)
downloadCMake-8085799ce3a311e3f0f3c2f2119ae0dcb8b2e0a3.zip
CMake-8085799ce3a311e3f0f3c2f2119ae0dcb8b2e0a3.tar.gz
CMake-8085799ce3a311e3f0f3c2f2119ae0dcb8b2e0a3.tar.bz2
FindCUDA: Add option to set CUDA_HOST_COMPILER via environment
Re-use the `CUDAHOSTCXX` environment variable from the first-class CUDA language support to specify the host compiler for FindCUDA.
Diffstat (limited to 'Help/envvar')
-rw-r--r--Help/envvar/CUDAHOSTCXX.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/envvar/CUDAHOSTCXX.rst b/Help/envvar/CUDAHOSTCXX.rst
index f0f94f6..bb786ca 100644
--- a/Help/envvar/CUDAHOSTCXX.rst
+++ b/Help/envvar/CUDAHOSTCXX.rst
@@ -7,3 +7,7 @@ determine ``CUDA`` host compiler, after which the value for ``CUDAHOSTCXX`` is
stored in the cache as :variable:`CMAKE_CUDA_HOST_COMPILER`. For any
configuration run (including the first), the environment variable will be
ignored if the :variable:`CMAKE_CUDA_HOST_COMPILER` variable is defined.
+
+This environment variable is primarily meant for use with projects that
+enable ``CUDA`` as a first-class language. The :module:`FindCUDA`
+module will also use it to initialize its ``CUDA_HOST_COMPILER`` setting.