Skip to content

Commit

Permalink
Clean stub files that were generated recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Mar 12, 2024
1 parent 3553850 commit 5982f36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/nanobind-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ function (nanobind_add_stub name)
${NB_STUBGEN_EXTRA}
)
add_custom_target(${name} ALL DEPENDS ${NB_STUBGEN_OUTPUTS} ${STUB_FAKE_FILE})
file(GLOB STUB_FILES CONFIGURE_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/*.pyi" )
set_target_properties(${name} PROPERTIES ADDITIONAL_CLEAN_FILES "${STUB_FILES}")
else()
set(NB_STUBGEN_EXTRA "")
if (ARG_COMPONENT)
Expand Down

0 comments on commit 5982f36

Please # to comment.