diff options
author | Brad King <brad.king@kitware.com> | 2019-11-12 14:52:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-11-12 14:53:42 (GMT) |
commit | aec81b301ecf82f7b131d9d49d67d9b6be82a13a (patch) | |
tree | 4cdffd2ffba60f2ae351b8a5995c00777fe33055 /Modules | |
parent | f59ae1a698561657afa32245f9c8f3fc90aa392d (diff) | |
parent | 46371132b3d79d2a4c86ee2a99b7a0fed4367750 (diff) | |
download | CMake-aec81b301ecf82f7b131d9d49d67d9b6be82a13a.zip CMake-aec81b301ecf82f7b131d9d49d67d9b6be82a13a.tar.gz CMake-aec81b301ecf82f7b131d9d49d67d9b6be82a13a.tar.bz2 |
Merge topic 'findcuda_stop_exposing_raw_pthreads_lib'
46371132b3 FindCUDA: CUDA_LIBRARIES doesn't contain raw `-pthread`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4035
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 85d705c..2a3e131 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -924,7 +924,7 @@ 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} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS}) + list(APPEND CUDA_LIBRARIES ${CUDA_cudart_static_LIBRARY} Threads::Threads ${CMAKE_DL_LIBS}) if (CUDA_rt_LIBRARY) list(APPEND CUDA_LIBRARIES ${CUDA_rt_LIBRARY}) endif() |