Pass WERROR to CMake as an explicit parameter rather than an env var.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16465
Differential Revision: D13853949
Pulled By: resistor
fbshipit-source-id: 71ccf90a2824ad21c9f26dd753b186f30435d82a