CUDACXX.rst 700 B

123456789101112131415161718192021
  1. CUDACXX
  2. -------
  3. .. versionadded:: 3.8
  4. .. include:: ENV_VAR.txt
  5. Preferred executable for compiling ``CUDA`` language files. Will only be used by
  6. CMake on the first configuration to determine ``CUDA`` compiler, after which the
  7. value for ``CUDA`` is stored in the cache as
  8. :variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration
  9. run (including the first), the environment variable will be ignored if the
  10. :variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined.
  11. .. note::
  12. Options that are required to make the compiler work correctly can be included;
  13. they can not be changed.
  14. .. code-block:: console
  15. $ export CUDACXX="custom-compiler --arg1 --arg2"