Move version.h to torch/headeronly (#164381)

Differential Revision: [D83685392](https://our.internmc.facebook.com/intern/diff/D83685392)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164381
Approved by: https://github.com/janeyx99
This commit is contained in:
Mikayla Gawarecki
2025-10-06 18:29:20 -07:00
committed by PyTorch MergeBot
parent b13cd141b3
commit f37a6523ef
12 changed files with 62 additions and 25 deletions

View File

@ -243,8 +243,8 @@ configure_file("${TORCH_SRC_DIR}/_utils_internal.py"
COPYONLY)
# Generate header with version info
configure_file("${TORCH_SRC_DIR}/csrc/api/include/torch/version.h.in"
"${TORCH_SRC_DIR}/csrc/api/include/torch/version.h"
configure_file("${TORCH_SRC_DIR}/headeronly/version.h.in"
"${TORCH_SRC_DIR}/headeronly/version.h"
@ONLY)
set(GENERATED_CXX_TORCH