diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-04-20 21:08:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-26 14:19:59 (GMT) |
commit | 1d6c34366112f66b2d263c2aab587ddfa6ee85ae (patch) | |
tree | b11cac465b37add6881f18d59cea07c25370b26e /Modules/FindCUDAToolkit.cmake | |
parent | 32c3dbbee8a9b2005b4040761efec622fa822f28 (diff) | |
download | CMake-1d6c34366112f66b2d263c2aab587ddfa6ee85ae.zip CMake-1d6c34366112f66b2d263c2aab587ddfa6ee85ae.tar.gz CMake-1d6c34366112f66b2d263c2aab587ddfa6ee85ae.tar.bz2 |
FindCUDAToolkit: Add missing static library dependencies on pthread and libdl
Discourse-topic: https://discourse.cmake.org/t/7946
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index fcafe65..ace7db1 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -1028,7 +1028,11 @@ if(CUDAToolkit_FOUND) endif() _CUDAToolkit_find_and_add_import_lib(culibos) # it's a static library - foreach (cuda_lib cublasLt cufft curand nppc nvjpeg) + foreach (cuda_lib cublasLt cufft nvjpeg) + _CUDAToolkit_find_and_add_import_lib(${cuda_lib}) + _CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS cudart_static_deps culibos) + endforeach() + foreach (cuda_lib curand nppc) _CUDAToolkit_find_and_add_import_lib(${cuda_lib}) _CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS culibos) endforeach() |