Skip to content

Prefer system-provided library for Catch2 #268

Merged
tstenner merged 2 commits intosccn:devfrom
obbardc:wip/obbardc/catch2-prefer-system-libs
Apr 21, 2026
Merged

Prefer system-provided library for Catch2 #268
tstenner merged 2 commits intosccn:devfrom
obbardc:wip/obbardc/catch2-prefer-system-libs

Conversation

@obbardc
Copy link
Copy Markdown
Contributor

@obbardc obbardc commented Apr 13, 2026

For distro packages it is prefereable to use system-provided packages. Use the system-provided library if available.

obbardc added 2 commits April 13, 2026 13:26
Use the system-provided Catch2 library when available before falling
back to fetching the library from upstream if the library is not found
on the system.

Signed-off-by: Christopher Obbard <obbardc@debian.org>
The postprocessing test includes catch2/catch_approx.cpp which is an
internal source file and not shipped in the Catch2 v3 development
package.

Switch to including the public catch2/catch_approx.hpp header instead.

Signed-off-by: Christopher Obbard <obbardc@debian.org>
@tstenner
Copy link
Copy Markdown
Collaborator

LGTM. While we're at it, we might as well change the FetchContent to a newer Catch2 version.

@tstenner tstenner merged commit 08d3dc2 into sccn:dev Apr 21, 2026
11 of 14 checks passed
@obbardc obbardc deleted the wip/obbardc/catch2-prefer-system-libs branch April 21, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants