Building Open-CV 4.9.0 with Cuda 12.3 in Windows 11

The error is the same it looks like you have something wrong with your environmental variables, see the stack overflow post I linked to.

If I add a " to my path, e.g.

set path=""";%path%

then I get the same error.

Note: If you don’t pass -DCUDA_ARCH_BIN=8.9 you will get this error during the configuration stage.