Error when building OpenCV with gpu acceleration

I have been following the tutorial to build OpenCV with gpu CUDA acceleration. When I get to the part to type in the command msbuild INSTALL.vcxproj /p:Configuration=Release when I am in the build path directory, I get the error:

"C:\Users\...\OpenCV\opencv-master\build\INSTALL.vcxproj" (default target) (1) ->
"C:\Users\...\OpenCV\opencv-master\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\...\OpenCV\opencv-master\build\apps\annotation\opencv_annotation.vcxproj" (default target) (40) ->
"C:\Users\...\OpenCV\opencv-master\build\modules\core\opencv_core.vcxproj" (default target) (41) ->
(CustomBuild target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(2
31,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\...\OpenCV\opencv-master\build\modules\core\opencv_core
.vcxproj]

Are there any other ways of installing OpenCV with CUDA gpu acceleration?