浏览代码

Merge topic 'FindCUDAToolkit-nvptxcompiler_static-deps'

8711231739 FindCUDAToolkit: nvptxcompiler_static correctly specify dependencies

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8395
Brad King 2 年之前
父节点
当前提交
8b9c2b0009
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/FindCUDAToolkit.cmake

+ 1 - 1
Modules/FindCUDAToolkit.cmake

@@ -1137,7 +1137,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()