Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure finds Catch2 and then still complains about the missing catch submodule; tests are broken #2449

Open
yurivict opened this issue Mar 31, 2023 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Mar 31, 2023

-- Found Catch2: /usr/local/lib/cmake/Catch2 (version 2.13.9)
CMake Error at CMakeLists.txt:296 (add_subdirectory):
  The source directory

    /usr/ports/science/openmc/work/openmc-0.13.3/vendor/Catch2

  does not contain a CMakeLists.txt file.

This comparison should probably be if (NOT Catch2_FOUND).

Once this is corrected - it still fails:

-- Configuring done
CMake Error at tests/cpp_unit_tests/CMakeLists.txt:8 (target_link_libraries):
  Target "test_distribution" links to:

    Catch2::Catch2WithMain

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

And when the Catch2 submodule is used - the latter error still happens.
So tests are currently broken.

Version: 0.13.3
catch-2.13.9
FreeBSD 13.1

@yurivict yurivict changed the title configure finds Catch2 and then still complains about the missing catch submodule configure finds Catch2 and then still complains about the missing catch submodule; tests are broken Mar 31, 2023
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

No branches or pull requests

1 participant