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

Add separated compiler warnings cmake file #622

Merged

Conversation

uilianries
Copy link
Contributor

Adding compiler warning directly in CMakeLists.txt can be messy when you want to have multiple compilers supported and multiple warnings.

This PR follows the idea recommended by https://github.com/cpp-best-practices/ :

Use a separated CMake file with all compiler warnings, and export it as a function.

The function can receive compiler custom compiler flags too, so users will have a flexible build. The Warning as error is not enable by default, but can be when defining -DWARNINGS_AS_ERRORS=ON

Copy link
Owner

@cieslarmichal cieslarmichal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job :)

@cieslarmichal cieslarmichal merged commit 592175d into cieslarmichal:main Jun 1, 2024
5 of 6 checks passed
00thirdeye00 pushed a commit to 00thirdeye00/faker-cxx that referenced this pull request Jun 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants