2018-01-26 17:06:56 +01:00
|
|
|
CUDAHOSTCXX
|
|
|
|
-----------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.8
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. include:: ENV_VAR.txt
|
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
Preferred executable for compiling host code when compiling ``CUDA``
|
|
|
|
language files. Will only be used by CMake on the first configuration to
|
|
|
|
determine ``CUDA`` host compiler, after which the value for ``CUDAHOSTCXX`` is
|
2022-03-29 21:10:50 +02:00
|
|
|
stored in the cache as :variable:`CMAKE_CUDA_HOST_COMPILER`. This environment
|
|
|
|
variable is preferred over :variable:`CMAKE_CUDA_HOST_COMPILER`.
|
2018-10-28 12:09:07 +01:00
|
|
|
|
|
|
|
This environment variable is primarily meant for use with projects that
|
2021-09-14 00:13:48 +02:00
|
|
|
enable ``CUDA`` as a first-class language.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
Ignored when using :ref:`Visual Studio Generators`.
|
|
|
|
|
|
|
|
.. versionadded:: 3.13
|
|
|
|
The :module:`FindCUDA`
|
|
|
|
module will use this variable to initialize its ``CUDA_HOST_COMPILER`` setting.
|