Disable warnings for zlib in CMake

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Evergreen compiles mongo-c-driver with -Werror treating all warnings as errors. The autotools Makefile.am clears the CFLAGS for zLib to prevent zLib warnings showing up.

      We should do something similar in CMake. Currently if we specify

      -DCMAKE_C_FLAGS="-Werror"
      

      as a CMake option compile will fail from zLib warnings.

            Assignee:
            Kevin Albertson
            Reporter:
            Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: