CUDAHOSTCXX.rst 726 B

1234567891011121314151617
  1. CUDAHOSTCXX
  2. -----------
  3. .. versionadded:: 3.10
  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. The :module:`FindCUDA`
  13. module will also use it to initialize its ``CUDA_HOST_COMPILER`` setting.