CUDAHOSTCXX.rst 751 B

1234567891011121314151617181920212223
  1. CUDAHOSTCXX
  2. -----------
  3. .. versionadded:: 3.8
  4. .. include:: ENV_VAR.txt
  5. Preferred executable for compiling host code when compiling ``CUDA``
  6. language files. Will only be used by CMake on the first configuration to
  7. determine ``CUDA`` host compiler, after which the value for ``CUDAHOSTCXX`` is
  8. stored in the cache as :variable:`CMAKE_CUDA_HOST_COMPILER`. This environment
  9. variable is preferred over :variable:`CMAKE_CUDA_HOST_COMPILER`.
  10. This environment variable is primarily meant for use with projects that
  11. enable ``CUDA`` as a first-class language.
  12. .. note::
  13. Ignored when using :ref:`Visual Studio Generators`.
  14. .. versionadded:: 3.13
  15. The :module:`FindCUDA`
  16. module will use this variable to initialize its ``CUDA_HOST_COMPILER`` setting.