Use cmake Python3_EXECUTABLE variable instead of hardcoding

This commit is contained in:
Matthias Braun 2022-05-26 14:47:49 -07:00
parent 87628f5804
commit e267df8ce8
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function(generate_mock_model generator output)
tf_get_absolute_path(${generator} ${CMAKE_CURRENT_SOURCE_DIR} generator_absolute_path)
tf_get_absolute_path(${output} ${CMAKE_CURRENT_BINARY_DIR} output_absolute_path)
message(WARNING "Autogenerated mock models should not be used in production builds.")
execute_process(COMMAND python3
execute_process(COMMAND ${Python3_EXECUTABLE}
${generator_absolute_path}
${output_absolute_path}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}