CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_dnn" which requires target <target> that is not in any export set.

My task is to build OpenCV with OpenVino. I download OpenCV sources and OpenVino runtime. During the build I get mistakes:

CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_dnn" which requires target "ocv.3rdparty.openvino" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_gapi" which requires target "ocv.3rdparty.openvino" that is not in any export set.
CMake Error in CMakeLists.txt:
  export called with target "opencv_dnn" which requires target
  "ocv.3rdparty.openvino" that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "opencv_gapi" which requires target
  "ocv.3rdparty.openvino" that is not in any export set.

I use these flags:

-DBUILD_SHARED_LIBS=OFF -DOPENCV_ENABLE_NONFREE=ON -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DWITH_OPENVINO=ON ^
-DBUILD_opencv_gapi=ON -DOPENCV_DNN_OPENVINO=ON -DBUILD_WITH_STATIC_CRT=OFF

This is a question for OpenCV upstream. Basically, the options you’ve specified don’t export the complete set of targets required.