mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 12:11:04 -06:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user