diff --git a/src/common/options/CMakeLists.txt b/src/common/options/CMakeLists.txt index b432d866fa0c8e..bc2cc8d6420e0e 100644 --- a/src/common/options/CMakeLists.txt +++ b/src/common/options/CMakeLists.txt @@ -33,7 +33,7 @@ function(add_options name) set(h_file "${PROJECT_BINARY_DIR}/include/${name}_legacy_options.h") add_custom_command(PRE_BUILD OUTPUT ${cc_file} ${h_file} - COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/y2c.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/y2c.py --input ${yaml_file} --output ${cc_file} --legacy ${h_file}