Skip to content

[catch2] Should work with VCPKG_DEFAULT_TRIPLET=x64-linux-release #40895

Open

Description

Is your feature request related to a problem? Please describe.

When installed through Vcpkg, Catch2 cannot be found by CMake.

CMake Error at /home/mate/.braid/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
  Could not find a package configuration file provided by "Catch2" with any
  of the following names:

    Catch2Config.cmake
    catch2-config.cmake

  Add the installation prefix of "Catch2" to CMAKE_PREFIX_PATH or set
  "Catch2_DIR" to a directory containing one of the above files.  If "Catch2"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:26 (find_package)

Proposed solution

Catch2 should be found by CMake.

Describe alternatives you've considered

Provide my own file for CMake to find Catch2.

Additional context

I use VCPKG_DEFAULT_TRIPLET=x64-linux-release to ensure that resulting binaries are small. Debug builds tend to be ~10x the size...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions