[Debian-med-packaging] Bug#995831: find_package(charls 2.2.0 REQUIRED) not working

Mathieu Malaterre malat at debian.org
Wed Oct 6 16:30:52 BST 2021


Package: libcharls-dev
Version: 2.2.0+dfsg-2

The following simple cmakelists.txt file on buster:

```
cmake_minimum_required(VERSION 3.18)
project(p)
find_package(charls 2.2.0 REQUIRED)
```

lead to:

CMake Error at CMakeLists.txt:3 (find_package):
  Could not find a configuration file for package "charls" that is compatible
  with requested version "2.2.0".

  The following configuration files were considered but not accepted:

    /usr/lib/x86_64-linux-gnu/cmake/charls/charlsConfig.cmake, version: unknown
    /lib/x86_64-linux-gnu/cmake/charls/charlsConfig.cmake, version: unknown



-- Configuring incomplete, errors occurred!
See also "/tmp/a/bin/CMakeFiles/CMakeOutput.log".



More information about the Debian-med-packaging mailing list