CMAKE_CUDA_RUNTIME_LIBRARY.rst 942 B

123456789101112131415161718192021222324
  1. CMAKE_CUDA_RUNTIME_LIBRARY
  2. --------------------------
  3. Select the CUDA runtime library for use by compilers targeting the MSVC ABI.
  4. This variable is used to initialize the :prop_tgt:`CUDA_RUNTIME_LIBRARY`
  5. property on all targets as they are created.
  6. The allowed case insensitive values are:
  7. .. include:: ../prop_tgt/CUDA_RUNTIME_LIBRARY-VALUES.txt
  8. Contents of ``CMAKE_CUDA_RUNTIME_LIBRARY`` may use
  9. :manual:`generator expressions <cmake-generator-expressions(7)>`.
  10. If this variable is not set then the :prop_tgt:`CUDA_RUNTIME_LIBRARY` target
  11. property will not be set automatically. If that property is not set then
  12. CMake uses the default value ``Static`` to select the CUDA runtime library.
  13. .. note::
  14. This property has effect only when the ``CUDA`` language is enabled. To
  15. control the CUDA runtime linking when only using the CUDA SDK with the
  16. ``C`` or ``C++`` language we recommend using the :module:`FindCUDAToolkit`
  17. module.