How to set CC (CUDA Compute Capability) 5.0 in CMake?

Hi
I am a new bee in this field.
I am using CUDA version 11040
windows 10
CMake version:3.21.3
and 2 GPU:NVIDIA Quadro M1200 and Intel HD graphics 630.
And having the error : CUDA Error: no kernel image is available for execution on the device while running darknet.

To solve this error I need to set CC (CUDA Compute Capability) 5.0 in CMake.
Can anyone please suggest to me How can I set CC (CUDA Compute Capability) 5.0 in CMake?

Please help me with this.

Regards
Sharmin

Cc: @robert.maynard

Set the CMAKE_CUDA_ARCHITECTURES variable to 50 so that you compile for the GPU architecture you have.