CUDA issue when compiling with CMake

hello everyone

i was trying to compile using CMake 3.26.3 then i got the following error:

CMake error at CMakelists.txt : 126 (message)
** unsupported CUDA version, please upgrade to CUDA 9+ or disable CUDA with explicity with -DENABLE_CUDA=OFF**

the problem here is that my GPU is ( NVIDIA Geforce GT 540M ) and it only support CUDA version 8.0, also I am using visual studio 2015 because it is compatible with CUDA version 8.0

is there a way to go around this problem. any help is appreciated

thank you