Andrew Schwartzmeyer created MESOS-8689:
-------------------------------------------

             Summary: Add -Werror semantics to the CMake build
                 Key: MESOS-8689
                 URL: https://issues.apache.org/jira/browse/MESOS-8689
             Project: Mesos
          Issue Type: Improvement
            Reporter: Andrew Schwartzmeyer


While MESOS-8658 got us to warning-parity with Autotools, we still don't have 
-Werror turned on because we need to figure out precisely which it'll apply to. 
Autotools adds it to {{MESOS_CPPFLAGS}} which are then included in almost all 
targets under {{src}}, but when we tried the equivalent via 
{{add_compile_options}} we had issues due to warnings from protobufs.

Ideally we turned it on using {{target_compile_options(foo PRIVATE)}} so that 
it's not directory-wide nor inheritable; but that'll mean figuring out which 
targets to turn it on for. We probably should turn it on for stout-tests, 
libprocess, and libprocess-tests too, which the Autotools build does not yet do.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to