summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-04-05 13:38:11 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-04-05 14:57:55 (GMT)
commit8711231739fa738a9ece02cb15b037b72b429fc0 (patch)
treec034b3ad7a57aa74d45eb296a31cbaad85f41b6d /Modules
parent624461526f4707a2406ebbd40245a605b6bd41fa (diff)
downloadCMake-8711231739fa738a9ece02cb15b037b72b429fc0.zip
CMake-8711231739fa738a9ece02cb15b037b72b429fc0.tar.gz
CMake-8711231739fa738a9ece02cb15b037b72b429fc0.tar.bz2
FindCUDAToolkit: nvptxcompiler_static correctly specify dependencies
Avoids linking to `Threads::Threads` on non-unix systems where it isn't needed. In addition ensures that dlopen symbols are resolved.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDAToolkit.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index c3b6bc3..6f7ae43 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -1109,7 +1109,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()