CUDAHOSTCXX.rst 702 B

123456789101112131415
  1. CUDAHOSTCXX
  2. -----------
  3. .. include:: ENV_VAR.txt
  4. Preferred executable for compiling host code when compiling ``CUDA``
  5. language files. Will only be used by CMake on the first configuration to
  6. determine ``CUDA`` host compiler, after which the value for ``CUDAHOSTCXX`` is
  7. stored in the cache as :variable:`CMAKE_CUDA_HOST_COMPILER`. For any
  8. configuration run (including the first), the environment variable will be
  9. ignored if the :variable:`CMAKE_CUDA_HOST_COMPILER` variable is defined.
  10. This environment variable is primarily meant for use with projects that
  11. enable ``CUDA`` as a first-class language. The :module:`FindCUDA`
  12. module will also use it to initialize its ``CUDA_HOST_COMPILER`` setting.