Stopping pthread from propagating to nvcc
In findthreads.cmake, simply adding -pthread will propagate that to nvcc as well. but nvcc doesn't understand the flag -pthread. So this merge request will fix this issue by using compiler language guard.
Not sure if this breaks other stuff! Thanks!