CUDA: static lib device linking computes required static libs
requested to merge robertmaynard/cmake:cuda_resolve_device_symbols_on_static_lib_collect_deps_properly into master
Previously the CMake didn't compute the required set of libraries needed to properly device link a static library when CUDA_RESOLVE_DEVICE_SYMBOLS was enabled.
Edited by Robert Maynard