mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
Merge topic 'FindCUDA-no-threads-target' into release-3.17
b9d67447c3 FindCUDA: Only depend on Threads::Threads on platforms that need it
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4377
This commit is contained in:
@@ -929,7 +929,11 @@ set(CUDA_LIBRARIES)
|
||||
if(CUDA_BUILD_EMULATION AND CUDA_CUDARTEMU_LIBRARY)
|
||||
list(APPEND CUDA_LIBRARIES ${CUDA_CUDARTEMU_LIBRARY})
|
||||
elseif(CUDA_USE_STATIC_CUDA_RUNTIME AND CUDA_cudart_static_LIBRARY)
|
||||
list(APPEND CUDA_LIBRARIES ${CUDA_cudart_static_LIBRARY} Threads::Threads ${CMAKE_DL_LIBS})
|
||||
list(APPEND CUDA_LIBRARIES ${CUDA_cudart_static_LIBRARY})
|
||||
if (TARGET Threads::Threads)
|
||||
list(APPEND CUDA_LIBRARIES Threads::Threads)
|
||||
endif()
|
||||
list(APPEND CUDA_LIBRARIES ${CMAKE_DL_LIBS})
|
||||
if (CUDA_rt_LIBRARY)
|
||||
list(APPEND CUDA_LIBRARIES ${CUDA_rt_LIBRARY})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user