Skip to content

Commit b70fac7

Browse files
peterbell10facebook-github-bot
authored andcommitted
CMake: Fix python dependencies in codegen (pytorch#45275)
Summary: I noticed while working on pytorch#45163 that edits to python files in the `tools/codegen/api/` directory wouldn't trigger rebuilds. This tells CMake about all of the dependencies, so rebuilds are triggered automatically. Pull Request resolved: pytorch#45275 Reviewed By: zou3519 Differential Revision: D23922805 Pulled By: ezyang fbshipit-source-id: 0fbf2b6a9b2346c31b9b0384e5ad5e0eb0f70e9b
1 parent 78fcde9 commit b70fac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Codegen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if(INTERN_BUILD_ATEN_OPS)
144144
endforeach()
145145
list(APPEND ATen_CPU_SRCS ${cpu_kernel_cpp})
146146

147-
file(GLOB all_python "${CMAKE_CURRENT_LIST_DIR}/../tools/codegen/*.py")
147+
file(GLOB_RECURSE all_python "${CMAKE_CURRENT_LIST_DIR}/../tools/codegen/*.py")
148148

149149
set(GEN_ROCM_FLAG)
150150
if(USE_ROCM)

0 commit comments

Comments
 (0)