-
Notifications
You must be signed in to change notification settings - Fork 191
Using clang-analyze in Hunter build #32
Comments
It designed so it will stop the build with the error. The idea was to have additional toolchain in CI testing (like Travis) so one of the jobs report an error if any warning found. Then you explicitly mark the warning as ignored or fix it, and retrigger build again until you have greeny success status. Quite the same happens if you use this toolchain in Hunter. Every package build such way, hence you see broken package. What is the end goal? You want to analyze your current project which have 3rd parties from Hunter. Are you interested in warning from 3rd party? |
Exactly this, I want to ignore the warnings from third parties and stop with an error on the package I am currently building |
Okay. So the plan is to add some option/variable that can disable toolchain forwarding in Hunter. I'll think about it and let you know when it will be fixed. As a workaround you can include HunterGate(URL ... SHA1 ...)
project(...)
include("/path/to/polly/analyze.cmake")
add_executable(...) If you're using |
Thanks, this solves if for now! |
Should the clang-analyze script should continue to rebuild with clang after reporting warnings for a library using clang analyze?
I've attached my console log for a build which uses opencv, the build exits after opencv fails to build.
The text was updated successfully, but these errors were encountered: