Building Open-CV 4.9.0 with Cuda 12.3 in Windows 11

Syntax error in cmake code at

C:/Ombrulla/General/GPU_OpenCv/opencv-4.9.0/cmake/OpenCVUtils.cmake:1491

when parsing string

PRIVATE;C:\Users\OMBRULLA\AppData\Local\Programs\Python\Python311\libs\python311.lib

Invalid character escape ‘\U’.
Call Stack (most recent call first):
cmake/OpenCVUtils.cmake:1521 (__ocv_push_target_link_libraries)
modules/python/common.cmake:64 (ocv_target_link_libraries)
modules/python/python3/CMakeLists.txt:20 (include)

– Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3/include (found version “12.3.103”)
CMake Warning at cmake/OpenCVFindLibsPerf.cmake:49 (message):
OpenCV is not able to find/configure CUDA SDK (required by WITH_CUDA).

CUDA support will be disabled in OpenCV build.

To eliminate this warning remove WITH_CUDA=ON CMake configuration option.

Call Stack (most recent call first):
CMakeLists.txt:812 (include)

– CUDA: Not detected, when using stand alone installations with the Visual Studio generator the path to the CUDA toolkit should be manually specified with -Tcuda=. e.g. -Tcuda=“C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X”