From 6c15ad79788b6ccbba0fde73fb09cfcd15cce608 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 30 Aug 2019 13:57:54 +0200 Subject: [PATCH] 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 --- cmake/QtBuild.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 55ea25f8f25..3a1dbb5bb42 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -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"