CUDAHOSTCXX.rst 817 B

12345678910111213141516171819202122232425
  1. CUDAHOSTCXX
  2. -----------
  3. .. versionadded:: 3.8
  4. .. include:: include/ENV_VAR.rst
  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
  9. :variable:`CMAKE_CUDA_HOST_COMPILER <CMAKE_<LANG>_HOST_COMPILER>`.
  10. This environment variable is preferred over
  11. :variable:`CMAKE_CUDA_HOST_COMPILER <CMAKE_<LANG>_HOST_COMPILER>`.
  12. This environment variable is primarily meant for use with projects that
  13. enable ``CUDA`` as a first-class language.
  14. .. note::
  15. Ignored when using :ref:`Visual Studio Generators`.
  16. .. versionadded:: 3.13
  17. The :module:`FindCUDA`
  18. module will use this variable to initialize its ``CUDA_HOST_COMPILER`` setting.