Skip to content

FindCUDA: CUDA_LIBRARIES doesn't contain raw `-pthread`

If a person tried to pass CUDA_LIBRARIES to nvcc compiler it could fail as it might have -pthread which nvcc doesn't support. Instead we now use the Threads::Threads so that nvcc gets the correct -Xcompiler -pthread flag.

Merge request reports