Skip to content

Commit dba19b8

Browse files
guangyeypytorchbot
authored andcommitted
Add xpu_cmake_macros.h to xpu build (#132847)
# Motivation fix #132971 Pull Request resolved: #132847 Approved by: https://github.com/EikanWang (cherry picked from commit 9c5e0d4)
1 parent 24e04f3 commit dba19b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c10/xpu/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ foreach(file ${C10_XPU_HEADERS})
5656
get_filename_component(dir ${file} DIRECTORY)
5757
install(FILES ${file} DESTINATION include/c10/xpu/${dir})
5858
endforeach()
59+
install(FILES ${CMAKE_BINARY_DIR}/c10/xpu/impl/xpu_cmake_macros.h
60+
DESTINATION include/c10/xpu/impl)
5961

6062
if(MSVC AND C10_XPU_BUILD_SHARED_LIBS)
6163
install(FILES $<TARGET_PDB_FILE:c10_xpu> DESTINATION lib OPTIONAL)

0 commit comments

Comments
 (0)