Fix potentially wrong version in Windows resources of Qt plugins
qt_internal_add_plugin calls qt_set_target_info_properties with the TARGET_VERSION argument and passes arg_VERSION. However, the function qt_internal_add_plugin does not have a VERSION argument. If arg_VERSION is set before calling qt_internal_add_plugin, that value will be used, and that could be wrong for the plugin. Remove the TARGET_VERSION argument from the qt_set_target_info_properties call. Pick-to: 6.4 Change-Id: I0ae9e0e6636d74fdc20e6ab9ca525c5a9126000c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
1e02c4acbf
commit
df764df3ea
@ -117,7 +117,7 @@ function(qt_internal_add_plugin target)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
qt_set_target_info_properties(${target} ${ARGN} TARGET_VERSION "${arg_VERSION}")
|
||||
qt_set_target_info_properties(${target} ${ARGN})
|
||||
|
||||
set_target_properties(${target} PROPERTIES
|
||||
_qt_package_version "${PROJECT_VERSION}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user