With the new whinlatter release yocto moved the cmake version to 4.x which causes following errors:
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the recipe is not enough, see:
opencv/opencv#27122
The solution is basically to bump up every cmake_minimum_required < 3.5 to 3.5 via patch file similar to:
opencv/opencv@cb80308#diff-e4ddc642d45c62a456c800502887e68e6c64595da87894090b9f3a0a08817799
Are there plans to move to a newer opencv imx version for whinlatter? If not, I could provide a patch that fixes the build issue for the 4.6.0.imx version.