Respect user-set CMAKE_PREFIX_PATH (#61904)
authorCan Balioglu <cbalioglu@users.noreply.github.com>
Fri, 13 Aug 2021 20:47:37 +0000 (13:47 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 13 Aug 2021 20:49:05 +0000 (13:49 -0700)
commite711b5ce6c4982960c293b005da37a6d91253bd7
treeb8d9b3ec1d87a0af5eade8f2af19aed40d1a366e
parent90a96e0642f1669421605eeb81350229f9159706
Respect user-set CMAKE_PREFIX_PATH (#61904)

Summary:
Fixes the case where the `CMAKE_PREFIX_PATH` variable gets silently overwritten by a user specified environment variable.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/61904

Reviewed By: walterddr, malfet

Differential Revision: D29792014

Pulled By: cbalioglu

fbshipit-source-id: babacc8d5a1490bff1e14247850cc00c6ba9e6be
tools/setup_helpers/cmake.py