[hotfix] Workaround for older versions of ninja (#37417)
Summary:
Older versions of ninja don't like relative paths in configure_file when it is called twice.
https://gitlab.kitware.com/cmake/cmake/issues/17601
Fix suggested in comments https://gitlab.kitware.com/cmake/cmake/-/issues/18584
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37417
Reviewed By: malfet
Differential Revision: D21280141
Pulled By: bwasti
fbshipit-source-id: 4cb94996a9e8ae8c01602ea1da6f4ce9d61fa700