aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-04 18:55:51 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-04 22:27:33 +0200
commitded331ce62698369855511cd266d857d6d677fd3 (patch)
treefdbe33bbf4321eb07ad043afb4901603af23a933 /cmake
parent70dd5e24ce29adeab48932082863b3e3e3e4ba47 (diff)
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 <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtDeclarativeSetup.cmake12
1 files changed, 12 insertions, 0 deletions
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 $<BUILD_INTERFACE:${generate_dir}>)
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()