summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-11-05 12:20:35 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-11-06 22:03:50 +0100
commite31c6c7337477fa708e09311667ed3a8ace1b6b0 (patch)
tree66efaedf85dbe3ec42fafb936e37d258aa208974 /cmake
parentc9b8c2cddbd41c0c80bf46ad587ebb9a342255da (diff)
CMake: Add version information to Qt plugin DLLs
Tools and library DLLs already have version information embedded. Add the missing _qt_internal_generate_win32_rc_file call for plugins. Fixes: QTBUG-87747 Change-Id: I619948f4066ce229d41e8b93f125751e1d28e26c Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtPluginHelpers.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake
index b29eb4ebf0..b5250a4717 100644
--- a/cmake/QtPluginHelpers.cmake
+++ b/cmake/QtPluginHelpers.cmake
@@ -292,6 +292,10 @@ function(qt_internal_add_plugin target)
endfunction()
function(qt_finalize_plugin target install_directory)
+ if(WIN32 AND BUILD_SHARED_LIBS)
+ _qt_internal_generate_win32_rc_file("${target}")
+ endif()
+
# Generate .prl files for plugins of static Qt builds.
if(NOT BUILD_SHARED_LIBS)
qt_generate_prl_file(${target} "${install_directory}")