https://docs.opencv.org/4.x/db/df5/tutorial_linux_gcc_cmake.html
I just install the opencv with debug
and follow the toturial to run opencv.
windows
cmake -G “Visual Studio 17 2022” `
It show the error.
If I build opencv with Release, it will not show the below.
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0111 is not set: An imported target missing its location property
fails during generation. Run "cmake --help-policy CMP0111" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
IMPORTED_IMPLIB not set for imported target "opencv_xphoto" configuration
"RelWithDebInfo".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.