mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
FindCUDAToolkit: Add nvptxcompiler_static dependency on Threads::Threads
This commit is contained in:
@@ -366,7 +366,7 @@ This is a static library only.
|
|||||||
|
|
||||||
Targets Created:
|
Targets Created:
|
||||||
|
|
||||||
- ``CUDA::nvptxcompiler`` starting in CUDA 11.1
|
- ``CUDA::nvptxcompiler_static`` starting in CUDA 11.1
|
||||||
|
|
||||||
.. _`cuda_toolkit_nvRTC`:
|
.. _`cuda_toolkit_nvRTC`:
|
||||||
|
|
||||||
@@ -1059,6 +1059,7 @@ if(CUDAToolkit_FOUND)
|
|||||||
_CUDAToolkit_find_and_add_import_lib(nvrtc DEPS cuda_driver)
|
_CUDAToolkit_find_and_add_import_lib(nvrtc DEPS cuda_driver)
|
||||||
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1.0)
|
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1.0)
|
||||||
_CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static DEPS cuda_driver)
|
_CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static DEPS cuda_driver)
|
||||||
|
target_link_libraries(CUDA::nvptxcompiler_static INTERFACE Threads::Threads)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
_CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml)
|
_CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml)
|
||||||
|
|||||||
Reference in New Issue
Block a user