Building Open-CV 4.9.0 with Cuda 12.3 in Windows 11

I would check your environmental variables, see

Additionally make sure you are using the latest commit from the 4.x branch for both the main and contrib repositories. If not you will get the following error