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:27 (GMT) |
commit | b92e21cab8ecbca0a4f958e3f24774babd22afce (patch) | |
tree | 8ce10d0ff7987377b99670a81b445444cdc7778b | |
parent | 1ca371a7f0f1232833350558d0f740b440cf7a69 (diff) | |
parent | 1d6c34366112f66b2d263c2aab587ddfa6ee85ae (diff) | |
download | CMake-b92e21cab8ecbca0a4f958e3f24774babd22afce.zip CMake-b92e21cab8ecbca0a4f958e3f24774babd22afce.tar.gz CMake-b92e21cab8ecbca0a4f958e3f24774babd22afce.tar.bz2 |
Merge topic 'FindCUDAToolkit-static-deps'
1d6c343661 FindCUDAToolkit: Add missing static library dependencies on pthread and libdl
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8422
-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 a91580d..06457d9 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -1042,7 +1042,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() |