The errors shown in that view from Visual Studio are not in the order they are generated. If you can, look at the ouput window and find the first error which was generated. That should indicate what the issue is. Did you delete your build directory before you generated the solution file with CMake? Which version of OpenCV are you using?
If you need python use the wheel there is no advantage to building it yourself unless you need to modify the internal OpenCV code.