-
-
Notifications
You must be signed in to change notification settings - Fork 52
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 option warnings and errors not consistent (or documented) #44
Comments
Maybe something like |
|
Ah i see! That makes sense. Would you consider this to be common knowledge (that i didn't have) or is it worth adding a comment to the The comment now only says, that it turns Compiler warnings into errors. But, apparently it does more? |
Yes, we should add this to the docs. P.S: I don't personally use WARNINGS_AS_ERRORS because I don't need an external force for addressing the warnings. 😉 |
@LtdSauce are you interested in improving the docs here? |
If i find the time i could open a PR. I would suggest something like: "Turns compiler and static code analyzer warnings into errors. This also effects cmake warnings related to those." |
Thanks! I added the commit |
I noticed that not all cmake warnings are turned into errors when the variable
WARNING_MESSAGE
is set toSEND_ERROR
, henceWARNINGS_AS_ERRORS
enabled.For example a missing
clang-tidy
will produce an error if the corresponding option is set (see StaticAnalyzer.cmake:32).On the other hand a missing Sanitizer is always producing a warning (see Sanitizers.cmake:27).
Same goes for a missing
ccache
executable (see cache.cmake:29).I cannot find any explantation why those are treated different, which kind of confuses me.
Would it be possible to add comments why some do not use the
WARNING_MESSAGE
variable, if that had been done on purpose?Which seems the case at least for clang-tidy if i correctly understand #30.
The text was updated successfully, but these errors were encountered: