FindCUDA: broken separable compilation when cublas is not added to the target
The changes done in !1446 are completely wrong as they break compilation of targets which don't link to CUBLAS. Counter-example and build log are attached.
[build.log](/uploads/8769eba921d92c5fc7448f4637984d50/build.log)
[cuda-test.tar](/uploads/382d260025452ed79dfee7168e1e4689/cuda-test.tar)
issue