Fix qtdeclarative static builds

qmlplugindump is not build during a Qt static build, so there's no
point in creating custom targets that would run the tool.

Change-Id: Id7d6d44da63312f298f46eab08a5637cb0c97c8f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Alexandru Croitor 2019-08-30 13:57:54 +02:00
parent 8367a51c6d
commit 6c15ad7978

View File

@ -1837,6 +1837,11 @@ function(qt_add_qmltypes_target target)
return()
endif()
# Do nothing during a Qt static build (because the tool isn't built in that case).
if (NOT QT_BUILD_SHARED_LIBS)
return()
endif()
qt_parse_all_arguments(arg "qt_generate_qmltypes"
""
"TARGET_PATH;IMPORT_VERSION;IMPORT_NAME;QML_PLUGINDUMP_DEPENDENCIES"