Cuda not found in CMake when upgrading to libtorch1.11

I had to use something like this at some point:

set_property(TARGET yourtarget PROPERTY CUDA_STANDARD 14)

as it seems that by default CMake will use CUDA_STANDARD = C++standard but that might not be supported depending on your CUDA Toolkit version.