CUDAHOSTCXX.rst 824 B

123456789101112131415161718192021222324
  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`. For any
  9. configuration run (including the first), the environment variable will be
  10. ignored if the :variable:`CMAKE_CUDA_HOST_COMPILER` variable is defined.
  11. This environment variable is primarily meant for use with projects that
  12. enable ``CUDA`` as a first-class language.
  13. .. note::
  14. Ignored when using :ref:`Visual Studio Generators`.
  15. .. versionadded:: 3.13
  16. The :module:`FindCUDA`
  17. module will use this variable to initialize its ``CUDA_HOST_COMPILER`` setting.