Package: openjpeg2Version: 2.5.0-2 The Debian and Ubuntu libopenjp2-7-dev package is missing the OpenJPEGConfigVersion.cmake file.
As a consequence, it is not possible find the requested version in the config mode from CMake scripts using find_package(OpenJPEG 2): CMake Warning at CMakeLists.txt:178 (find_package): Could not find a configuration file for package "OpenJPEG" that is compatible with requested version "2". The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/openjpeg-2.1/OpenJPEGConfig.cmake, version: unknown /usr/lib/x86_64-linux-gnu/openjpeg-2.5/OpenJPEGConfig.cmake, version: unknown /lib/x86_64-linux-gnu/openjpeg-2.1/OpenJPEGConfig.cmake, version: unknown /lib/x86_64-linux-gnu/openjpeg-2.5/OpenJPEGConfig.cmake, version: unknown See https://github.com/strukturag/libheif/pull/1135 for more information

