Cl.exe not in path

I installed the cuda 12.3 installer and ran. After that I tried making a cuda executable in clion and cmake gave me the following error message: nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH

specs:
rtx 3060 ti
amd ryzen 5 5600x
asus rog b550-f gaming wifi II
32gb ram 3200 MHz