Skip to content

Commit b12d44e

Browse files
ezyangRob Kunkle
authored and
Rob Kunkle
committed
Fix ATen/core header installation. (pytorch#10463)
Summary: Fixes pytorch#10353 and fixes pytorch#10397. Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch#10463 Differential Revision: D9296491 Pulled By: ezyang fbshipit-source-id: f825c2a21a113e44a6f5c1c5ec17814d9deac366
1 parent f1d8fcb commit b12d44e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

caffe2/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ else()
5959
list(APPEND Caffe2_CPU_SRCS ${ATen_CORE_SRCS})
6060
list(APPEND Caffe2_CPU_INCLUDE ${ATen_CORE_INCLUDE})
6161
list(APPEND Caffe2_CPU_TEST_SRCS ${ATen_CORE_TEST_SRCS})
62-
# TODO: We should probably install the headers, but I don't know
63-
# how to do that.
62+
# See cmake/Codegen.cmake for header installation
6463
endif()
6564

6665
# ---[ Torch build

cmake/Codegen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../caffe2
2222
FILES_MATCHING PATTERN "*.h")
2323
if (NOT BUILD_ATEN)
2424
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../aten/src/ATen/core
25-
DESTINATION include/ATen/core
25+
DESTINATION include/ATen
2626
FILES_MATCHING PATTERN "*.h")
2727
endif()
2828
install(FILES ${CMAKE_BINARY_DIR}/caffe2/core/macros.h

0 commit comments

Comments
 (0)