Open DavidKerkmann opened 6 months ago
We did encounter this, and added the line
target_compile_options(boost INTERFACE "-Wno-c++20-attribute-extensions")
in cpp/thirdparty/CMakeLists.txt. Could you please try to change this to -Wno-c++20-extensions
and tell me if that fixed it?
Okay, so it seems like apple clang does not follow the diagnostics reference here. The exact warning you got should be toggled by -Wc++20-attribute-extensions, instead it is only managed by -Wc++20-extensions, which is supposed to toggle several other warnings in addition to the attribute warning. We probably should only add a special case for apple using this stronger toggle. Disabling too many warnings seems unnecessary (and potentially bad?).
Bug description
When compiling on my machine, I get the error below. Most likely happened after the changes from #983.
Version
Mac
To reproduce
Build memilio as usual.
Relevant log output
Add any relevant information, e.g. used compiler, screenshots.
Checklist