summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-04-06 13:05:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-04-06 13:05:50 (GMT)
commit8b9c2b0009bc2f429d0cfaf5e05aad786f245c08 (patch)
tree0b8450a77fde8b4868b36f0a6bdbc31ab2cc7fdb
parent1a35f546afc3402b3a0e5f6f15e2e3b9de81fdf5 (diff)
parent8711231739fa738a9ece02cb15b037b72b429fc0 (diff)
downloadCMake-8b9c2b0009bc2f429d0cfaf5e05aad786f245c08.zip
CMake-8b9c2b0009bc2f429d0cfaf5e05aad786f245c08.tar.gz
CMake-8b9c2b0009bc2f429d0cfaf5e05aad786f245c08.tar.bz2
Merge topic 'FindCUDAToolkit-nvptxcompiler_static-deps'
8711231739 FindCUDAToolkit: nvptxcompiler_static correctly specify dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8395
-rw-r--r--Modules/FindCUDAToolkit.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index 47a8fb8..4423ebb 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -1137,7 +1137,7 @@ if(CUDAToolkit_FOUND)
if(NOT TARGET CUDA::nvptxcompiler_static)
_CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static DEPS cuda_driver)
if(TARGET CUDA::nvptxcompiler_static)
- target_link_libraries(CUDA::nvptxcompiler_static INTERFACE Threads::Threads)
+ target_link_libraries(CUDA::nvptxcompiler_static INTERFACE CUDA::cudart_static_deps)
endif()
endif()
endif()