diff options
author | Brad King <brad.king@kitware.com> | 2022-11-01 12:52:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-01 12:52:38 (GMT) |
commit | c18caa3a7dd68a9a4b238424bf57104cf27f49ed (patch) | |
tree | 818f09c06e248e672cc693f13abe0dfc79ab8653 /Modules | |
parent | eaaccaa230f09916f106941a4e2caed9ecffed98 (diff) | |
parent | 301815eb6243c7598c246d06524cff51f7e90576 (diff) | |
download | CMake-c18caa3a7dd68a9a4b238424bf57104cf27f49ed.zip CMake-c18caa3a7dd68a9a4b238424bf57104cf27f49ed.tar.gz CMake-c18caa3a7dd68a9a4b238424bf57104cf27f49ed.tar.bz2 |
Merge topic 'FindCUDAToolkit-nvptxcompiler-static-deps'
301815eb62 FindCUDAToolkit: Add nvptxcompiler_static dependency on Threads::Threads
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7853
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index 7699e28..b019f0b 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -366,7 +366,7 @@ This is a static library only. Targets Created: -- ``CUDA::nvptxcompiler`` starting in CUDA 11.1 +- ``CUDA::nvptxcompiler_static`` starting in CUDA 11.1 .. _`cuda_toolkit_nvRTC`: @@ -1059,6 +1059,7 @@ if(CUDAToolkit_FOUND) _CUDAToolkit_find_and_add_import_lib(nvrtc DEPS cuda_driver) if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1.0) _CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static DEPS cuda_driver) + target_link_libraries(CUDA::nvptxcompiler_static INTERFACE Threads::Threads) endif() _CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml) |