From 0d30866039179b1bcdca39e1dc49d588470c46d0 Mon Sep 17 00:00:00 2001 From: knmcguire Date: Tue, 8 Apr 2025 18:40:52 +0200 Subject: [PATCH] set python executable var to custom cmake commands --- rosidl_generator_rs/cmake/custom_command.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rosidl_generator_rs/cmake/custom_command.cmake b/rosidl_generator_rs/cmake/custom_command.cmake index d16ccd8..8bba0ab 100644 --- a/rosidl_generator_rs/cmake/custom_command.cmake +++ b/rosidl_generator_rs/cmake/custom_command.cmake @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +find_package(Python3 REQUIRED COMPONENTS Interpreter) +set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) + add_custom_command( OUTPUT ${_generated_common_rs_files}