From ded331ce62698369855511cd266d857d6d677fd3 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 4 Jun 2020 18:55:51 +0200 Subject: CMake: Regenerate configure.cmake files This will cause cmake to show the usual configure reports. Needed to add a custom function to find python (not currently used though, except for the configure report). Change-Id: Id68efc5badeaa30834a37fe751c1d5b6bfd96d92 Reviewed-by: Cristian Adam --- cmake/QtDeclarativeSetup.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cmake/QtDeclarativeSetup.cmake') diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake index 2cd6f56127..d8e4719dbf 100644 --- a/cmake/QtDeclarativeSetup.cmake +++ b/cmake/QtDeclarativeSetup.cmake @@ -46,3 +46,15 @@ function(qt_declarative_generate_reg_exp_jit_tables consuming_target) target_sources(${consuming_target} PRIVATE ${output_file}) target_include_directories(${consuming_target} PRIVATE $) endfunction() + +function(qt_qml_find_python out_var_path out_var_found) + find_program(QT_QML_PYTHON_PATH + NAMES python python2 python3 py + DOC "Qt Declarative python path") + if(QT_QML_PYTHON_PATH) + set(${out_var_path} "${QT_QML_PYTHON_PATH}" PARENT_SCOPE) + set(${out_var_found} "TRUE" PARENT_SCOPE) + else() + set(${out_var_found} "FALSE" PARENT_SCOPE) + endif() +endfunction() -- cgit v1.2.3