CMake: Fix lookup of qml plugins for external project examples

There was a typo in the original change, which caused none of the qml
plugins in a prefix per-repo build being picked up.

Amends 06fef6219e992489dae15e9851725e1675ff0bf6

Pick-to: 6.7 6.8
Task-number: QTBUG-90820
Task-number: QTBUG-96232
Change-Id: Ibf14d9e0cbb0302c69d32071f4ba090f24a5798d
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2024-07-15 12:39:14 +02:00
parent 85f0e26371
commit 1ab33d575a

View File

@ -345,7 +345,7 @@ function(qt_internal_add_example_external_project subdir)
list(TRANSFORM glob_prefixes APPEND "/${INSTALL_LIBDIR}/cmake/${QT_CMAKE_EXPORT_NAMESPACE}Qml")
set(qml_plugin_cmake_config_file_glob_prefixes "")
foreach(glob_prefix IN LISTS glob_prefix)
foreach(glob_prefix IN LISTS glob_prefixes)
if(EXISTS "${glob_prefix}")
list(APPEND qml_plugin_cmake_config_file_glob_prefixes "${glob_prefix}")
endif()