nvcc fatal   : Unsupported gpu architecture 'compute_30'
I have checked out the latest revision and when I try make I get the following error:

$ make
[  1%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_30'
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:220 (message):
  Error generating
  /home/t/crypto/xmrig-nvidia/cmake/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/build.make:91: CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I am running the following OS:
$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

My NVIDIA driver is:
$ nvidia-smi -l
Sun Feb 13 15:57:50 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.39.01    Driver Version: 510.39.01    CUDA Version: 11.6     |

My NVIDIA card is:
$ lshw
           *-display
                description: VGA compatible controller
                product: TU116 [GeForce GTX 1660 Ti]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:07:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
                configuration: driver=nvidia latency=0
                resources: irq:83 memory:fb000000-fbffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:e000(size=128) memory:fc000000-fc07ffff

After googling it out I was able to find (not many) similar posts yet the one that came the closest to this problem was: https://github.com/flashlight/flashlight/issues/198

I have of course tried to inspire myself off this article but to no avail. I understand that I would need to add "-gencode arch=compute_30,code=sm_30" somewhere under CMakeLists.txt, possibly in:
option(WITH_AEON      "CryptoNight-Lite support" ON)
option(WITH_SUMO      "CryptoNight-Heavy support" ON)
option(WITH_CN_PICO   "CryptoNight-Pico support" ON)
option(WITH_CN_GPU    "CryptoNight-GPU support" ON)
option(WITH_HTTPD     "HTTP REST API" ON)
option(WITH_DEBUG_LOG "Enable debug log output" OFF)
option(WITH_TLS       "Enable OpenSSL support" ON)
option(WITH_ASM       "Enable ASM PoW implementations" ON)
option(BUILD_STATIC   "Build static binary" OFF)
option(ARM_TARGET     "Force use specific ARM target 8 or 7" 0)

But at this point I am beyond my head.

Can anybody help me out getting xmrig-nvidia running on my system? And/or will future revisions support/fix what I am trying to accomplish?
