Catch package appears to be missing CMake config

Asked by Ziah J.

I'm trying to compile a library that depends on catch2 (package name is catch), I found it in the repositories but installing it does not seem to add the catch2-config.cmake file cmake is looking for.

Normally this is in a separate package, something like libcatch-dev, but I found no other packages with "apt search catch". I tried looking for it with "apt-file search -i 'Catch2Config.cmake'" and "apt-file search -i 'catch2-config.cmake'"

I'm wondering if I missed something, if there is a reason for this or if it's a bug.

I'm on Ubuntu 20.04.

Thanks,
Ziah

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

catch2 is available only for Ubuntu 20.10 (groovy) and newer.
For Ubuntu 20.04 (focal) there is only the package catch that misses a catch2-config.cmake file.

The package catch2 for groovy (version 2.13.0-1) does not have any dependency, so it should be possible to install it also on focal.

I suggest that you try the following:
download the file
https://launchpad.net/ubuntu/+archive/primary/+files/catch2_2.13.0-1_all.deb
and install it with
sudo dpkg -i catch2_2.13.0-1_all.deb

Revision history for this message
Ziah J. (ziah-u) said :
#2

Thanks Manfred Hampl, that solved my question.