aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtDeclarativeSetup.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake
index 91c1a3fc01..2cd6f56127 100644
--- a/cmake/QtDeclarativeSetup.cmake
+++ b/cmake/QtDeclarativeSetup.cmake
@@ -24,6 +24,7 @@ function(qt_declarative_write_tag_header target_name)
CONTENT "${compile_hash_contents}")
endfunction()
+find_package(PythonInterp REQUIRED)
# Generate a header file containing a regular expression jit table.
function(qt_declarative_generate_reg_exp_jit_tables consuming_target)
@@ -39,7 +40,7 @@ function(qt_declarative_generate_reg_exp_jit_tables consuming_target)
add_custom_command(
OUTPUT "${output_file}"
- COMMAND python ${retgen_script_file} ${output_file}
+ COMMAND "${PYTHON_EXECUTABLE}" ${retgen_script_file} ${output_file}
MAIN_DEPENDENCY ${retgen_script_file}
)
target_sources(${consuming_target} PRIVATE ${output_file})