cmake: fix linker deps for CUDA
Merge pull request #1634 from alalek:cmake_fix_cuda_linker_deps