Skip to content

Target "Catch2::Catch" missing #3

@smu-sc-gj

Description

@smu-sc-gj

Cloned onto Fedora Linux (4.16.11-100.fc26.x86_64) using

target_link_libraries(testExe Catch2::Catch) # Prefer namespaced library

Gives me

CMake Error at CMakeLists.txt:24 (add_executable):
Target "testExe" links to target "Catch2::Catch" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

cmake works fine if I use target_link_libraries(testExe Catch2)

But the result does not compile (cannot find <catch.hpp>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions