CMake generator: Fix Q_IMPORT_QML_PLUGIN argument

Change-Id: I1fcf397ca188b03c580ad2f76bdab4c44eec2113
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tapani Mattila
2021-12-10 13:06:54 +02:00
committed by Thomas Hartmann
parent 76d8bb3f45
commit 8149a27815

View File

@@ -548,7 +548,7 @@ bool generateMainCpp(const FilePath &dir)
QString modulesAsPlugins;
for (const QString &moduleName : GenerateCmakeLists::moduleNames)
modulesAsPlugins.append(
QString(MAIN_CPPFILE_HEADER_PLUGIN_LINE).arg(moduleName + "plugin"));
QString(MAIN_CPPFILE_HEADER_PLUGIN_LINE).arg(moduleName + "Plugin"));
QString headerContent = GenerateCmake::readTemplate(MAIN_CPPFILE_HEADER_TEMPLATE_PATH)
.arg(modulesAsPlugins);