From 425963cdf2c9706926fb97bfffc9c3ce85338831 Mon Sep 17 00:00:00 2001 From: Pratyush Adhikari Date: Wed, 29 Jul 2026 22:15:14 +0530 Subject: [PATCH] GH-50702: [Python] Fix .pyx edits requiring two builds by enabling BYPRODUCTS in Cython CMake target --- cpp/cmake_modules/UseCython.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/cmake_modules/UseCython.cmake b/cpp/cmake_modules/UseCython.cmake index 7d88daa4fade..fd558d78ca78 100644 --- a/cpp/cmake_modules/UseCython.cmake +++ b/cpp/cmake_modules/UseCython.cmake @@ -154,9 +154,7 @@ function(compile_pyx "${CMAKE_CURRENT_BINARY_DIR}/${output_file}" "${CMAKE_CURRENT_SOURCE_DIR}/${pyx_file}" DEPENDS ${pyx_location} - # Do not specify byproducts for now since they don't work with the older - # version of cmake available in the apt repositories. - #BYPRODUCTS ${_generated_files} + BYPRODUCTS ${_generated_files} COMMENT ${comment}) # Remove their visibility to the user.