Opencv Build Cuda error

  opencv_visualisation.vcxproj -> C:\opencv\build\bin\Release\opencv_visualisation.exe
  waldboost_detector.cpp
  opencv_waldboost_detector.vcxproj -> C:\opencv\build\bin\Release\opencv_waldboost_detector.exe
  Generate files for Python bindings and documentation
  The system cannot find the path specified.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): e
rror MSB8066: Custom build for 'C:\opencv\build\CMakeFiles\b0cbf50ed0c046d0a1d723e6a1da2b5c\pyopencv_generated_enums.h.
rule;C:\opencv\build\CMakeFiles\902591c387db6c6dd12a2e20502de245\gen_opencv_python_source.rule' exited with code 3. [C:
\opencv\build\modules\python_bindings_generator\gen_opencv_python_source.vcxproj]

I tried to build using windows 10 and opencv 4.6.0 and cmake using this tutorial, but get that error after executing
**"C:\Program Files\CMake\bin\cmake.exe" --build "C:\opencv\build" --target INSTALL --config Release**

Tried to google it but there’s no result. Is there something that I miss?

Are you trying to build for python or C++? Which version of CUDA are you using?