Skip to content

Commit

Permalink
cmake: s/Python_EXECUTABLE/Python3_EXECUTABLE/
Browse files Browse the repository at this point in the history
as FindPython3.cmake only sets Python3_EXECUTABLE for us, we should
stick with Python3_EXECUTABLE instead of Python_EXECUTABLE.

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Aug 23, 2021
1 parent fc1a4e8 commit c08bcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/options/CMakeLists.txt
Expand Up @@ -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}
Expand Down

0 comments on commit c08bcc1

Please sign in to comment.