don't set the same C++ and C standards twice (#51832)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51832
Reviewed By: izdeby
Differential Revision: D26312660
Pulled By: ezyang
fbshipit-source-id: 7d646cd106397e70bca0050d0aa30eb62b085cee