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

CMake: Conditionally add warnings when supported #598

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

ideasman42
Copy link
Collaborator

@ideasman42 ideasman42 commented Jul 7, 2016

This adds utility functions to conditionally add compiler flags (when they're supported by the compiler),

allowing warnings from newer compiler versions to be used without
causing a lot of noise for users of older compilers.

Using C/CXX_WARNINGS also makes it easier to configure warnings based on different compilers instead of platforms, Clang/GCC on OSX and Linux can use the same warnings for example.

This adds utility functions to conditionally add compiler flags,

allowing warnings from newer compiler versions to be used without
causing a lot of noise for users of older compilers.
@skitaoka
Copy link
Member

skitaoka commented Jul 8, 2016

Jenkins, test this.

@skitaoka
Copy link
Member

skitaoka commented Jul 8, 2016

LGTM

@skitaoka skitaoka merged commit 8d53343 into master Jul 8, 2016
@skitaoka skitaoka deleted the cmake-warning-test-pr branch July 8, 2016 08:01
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