Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fail Ubuntu CI if there are compiler warnings
Add a [`CMakePresets.json`][1] file that contains `ci-ubuntu` preset. This preset contains most of the recommended compiler warnings from the [`cmake-init`][2] project. However, I had to remove the `-Wdouble-promotion` and `-Werror=float-equal` flags since there are issues within the GTest headers. For compatibility with g++-7, `-Wextra-semi` was removed. I also had to remove some of the following flags like: `-fstack-protector-strong -fstack-clash-protection`. These flags cause errors in Clang v10 (still run in CI), and to be honest, with stuff like address sanitizer, we probably don't need them. [1]: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html [2]: https:/friendlyanon/cmake-init/blob/aa42211c79ab5117b05a2d9f795427f078a0a3d5/cmake-init/templates/common/CMakePresets.json#L88
- Loading branch information