Further remove redundant CMake option passing code for those CMake variables that are directly controlled by environment variables but with a different name. (#22154)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22154
ghimport-source-id: 714b98566e70063925c4c9e10940a4fe46fb5a3d
Test Plan: Imported from OSS
Differential Revision: D15985376
Pulled By: ezyang
fbshipit-source-id: 60710125009cd8bf60b5600a3f05854d931d9844