cmake: Use BUILD_INTERFACE with TORCH_SRC_DIR (#60403)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60403
TORCH_SRC_DIR has the potential to be hardcoded thus breaking downstream
cmake extensions. Prefer CMAKE_CURRENT_SOURCE_DIR with BUILD_INTERFACE
to make it magically work together
See https://cmake.org/cmake/help/latest/command/target_include_directories.html
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
Test Plan: Imported from OSS
Reviewed By: samestep
Differential Revision: D29276503
Pulled By: seemethere
fbshipit-source-id: 6ec0754de6a02cdc35a4a453d6271ac4fdfc5ee3