diff options
author | Brad King <brad.king@kitware.com> | 2023-04-26 14:21:32 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-04-26 14:22:26 (GMT) |
commit | b548c7efa641214baed232425695ce0605decfa7 (patch) | |
tree | adfc1a88595b4b5fdb9aa2fab4bf1c8e417a9977 /Modules | |
parent | f0b45e6dbbdda3787687fc237492ea2a233c3b30 (diff) | |
parent | 1d6c34366112f66b2d263c2aab587ddfa6ee85ae (diff) | |
download | CMake-b548c7efa641214baed232425695ce0605decfa7.zip CMake-b548c7efa641214baed232425695ce0605decfa7.tar.gz CMake-b548c7efa641214baed232425695ce0605decfa7.tar.bz2 |
Merge topic 'FindCUDAToolkit-static-deps' into release-3.26
1d6c343661 FindCUDAToolkit: Add missing static library dependencies on pthread and libdl
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8422
Diffstat (limited to 'Modules')
-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 d94a32b..b9e3cc9 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() |