You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /usr/ports/net/cppzmq/work/cppzmq-4.10.0/tests/active_poller.cpp:3:
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/tests/testutil.hpp:3:10: fatal error: 'catch2/catch.hpp' file not found
3 | #include <catch2/catch.hpp>
| ^~~~~~~~~~~~~~~~~~
1 error generated.
Version: 4.10.0
catch2-3.5.4
FreeBSD 14.0
The text was updated successfully, but these errors were encountered:
Hey @yurivict - I had the same issue but with catch2-3.6.0. I think what's going on in the newer catch's is they're doing away with the convenience header (catch.hpp). Basically, changing
#include <catch2/catch.hpp>
to
#include <catch2/catch_test_macros.hpp>
in tests/message.cpp, tests/socket.cpp, tests/send_multipart.cpp, tests/multipart.cpp, tests/socket_ref.cpp, tests/testutil.cpp, tests/recv_multipart.cpp, tests/buffer.cpp, tests/code_multipart.cpp, tests/utilities.cpp, and tests/context.cpp will get you through the compilation phase.
However, I also ran into an issue with tests/CMakeFiles.txt after this was done. I think you can leave
find_package(Catch2 QUIET)
as is. Though, with the blessing of @gummif, maybe it is time to set it to:
find_package(Catch2 3 QUIET)
Then a little later add some logic that looks like this (I'm guessing on the exact version where you should be explicitly linking to Catch2WithMain):
Version: 4.10.0
catch2-3.5.4
FreeBSD 14.0
The text was updated successfully, but these errors were encountered: