Revert "CMake: Fix *-metatypes.json creation for non-Ninja generators"

This reverts commit ab6950acab5f799e5b3f097a87300e7c1dd1cf04.

Reason for revert: It breaks test_qml_app_deployment test in qtdeclarative for iOS and Xcode

Pick-to: 6.6 6.5
Fixes: QTBUG-121729
Task-number: QTBUG-120317
Change-Id: I356882a97f63534aa17133a4fbbb1db90295dfba
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 6aed870919feb565955d6d40e23337d98ff10e7a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexandru Croitor 2024-01-31 09:31:22 +00:00 committed by Qt Cherry-pick Bot
parent d76828a1c7
commit d0da8d963d

View File

@ -1425,7 +1425,7 @@ function(qt6_extract_metatypes target)
VERBATIM
)
if(NOT CMAKE_GENERATOR MATCHES "^Ninja")
if(CMAKE_GENERATOR MATCHES " Makefiles")
# Work around https://gitlab.kitware.com/cmake/cmake/-/issues/19005 to trigger the command
# that generates ${metatypes_file}.
add_custom_command(