When installing catch2, CATCH_DEVELOPMENT_BUILD is turned on in the ebuild, which causes projects using catch2 to inherit compiler flags from it. This flag is meant for developers of catch2, and can cause problems when users of catch2 treat warnings as errors. https://github.com/catchorg/Catch2/blob/devel/docs/cmake-integration.md#cmake-project-options Reproducible: Always Steps to Reproduce: 1. Install catch2 v3 2. Use catch2 from in a project that treats warnings as errors but does something to trigger -Werror=float-equal or -Werror=float-equal 3. Compile Actual Results: Failure to compile your project Expected Results: Successful compilation The current workaround I have is to not use the catch2 in portage
There is no package called dev-cpp/catch2 in gentoo. Do you mean dev-cpp/catch?
Yes, sorry, I meant dev-cpp/catch
Created attachment 858253 [details, diff] patch Michael, This hacky cmake patch works for me at the moment until the ebuild is updated.
*** This bug has been marked as a duplicate of bug 865207 ***