diff --git a/cmake/QtExecutableHelpers.cmake b/cmake/QtExecutableHelpers.cmake index bccab32b870..ebfc85eb8e8 100644 --- a/cmake/QtExecutableHelpers.cmake +++ b/cmake/QtExecutableHelpers.cmake @@ -197,7 +197,7 @@ function(qt_internal_add_executable name) endif() string(MAKE_C_IDENTIFIER "${name}_plugin_imports_${lib}" out_file) string(APPEND out_file .cpp) - set(class_names "$>") + set(class_names "$>") file(GENERATE OUTPUT ${out_file} CONTENT "// This file is auto-generated. Do not edit. #include @@ -209,7 +209,7 @@ Q_IMPORT_PLUGIN($) target_sources(${name} PRIVATE "$<$>:${out_file}>" ) - target_link_libraries(${name} PRIVATE "$") + target_link_libraries(${name} PRIVATE "$") endforeach() endif() endfunction() diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake index 1eb800cb0b2..36c1335f6cd 100644 --- a/cmake/QtPluginHelpers.cmake +++ b/cmake/QtPluginHelpers.cmake @@ -169,8 +169,8 @@ function(qt_internal_add_plugin target) DEFINITION PROJECT_NAME ) if(module_project_name STREQUAL PROJECT_NAME) - set_property(TARGET ${qt_module_target} APPEND PROPERTY QT_REPO_PLUGINS "${target}") - set_property(TARGET ${qt_module_target} APPEND PROPERTY QT_REPO_PLUGIN_CLASS_NAMES + set_property(TARGET ${qt_module_target} APPEND PROPERTY _qt_repo_plugins "${target}") + set_property(TARGET ${qt_module_target} APPEND PROPERTY _qt_repo_plugin_class_names "$" ) endif() @@ -178,7 +178,7 @@ function(qt_internal_add_plugin target) # TODO: If a repo A provides an internal executable E and a plugin P, with the plugin # type belonging to a Qt module defined in a different repo, and executable E needs to # link to plugin P in a static build, currently that won't happen. The executable E - # will link to plugins mentioned in the Qt module's QT_REPO_PLUGINS property, but that + # will link to plugins mentioned in the Qt module's _qt_repo_plugins property, but that # property will not list P because the Qt module will be an imported target and won't # have a SOURCE_DIR or PROJECT NAME, so the checks above will not be met. # Figure out how to handle such a scenario.