Skip to content

CMake tests ignore installed Catch2 #652

@mpoquet

Description

@mpoquet

As of latest commit 3ce61a1 or latest release v2.1.1, CMake tests always download Catch2 from a GitHub release instead of using an installed version if available.

This forces me to disable tests in the CLI11 Nix package in nixpkgs (I am updating it to CLI-v2.1.1) since Nix builds packages in a sandbox where they can only access their sources and not download external resources.

Can you update Catch2 CMake integration so that an installed Catch2 version is used if available? Installed Catch2 seems to be retrievable from CMake either via pkg-config (catch2.pc) or via CMake itself. This would change #include "catch.hpp" in tests to #include <catch2/catch.hpp>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions