summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/notepad/notepad.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-05-12 09:42:41 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-05-17 19:11:10 +0200
commit5268edf5811251a432fb5096aef6de4ef372f619 (patch)
treea397bb421a3a1d60ebbebe825e866e5624aaa72f /examples/widgets/tutorials/notepad/notepad.cpp
parent92198efbd2c696470711e7f24c5b6507bb664ce9 (diff)
CMake: Don't do plugin initialization for static libraries
Q_IMPORT_PLUGIN generates a global static symbol that initializes a plugin. If this symbol is added to a static library and the library is then linked to an executable, the linker decides that the symbol is unused (because nothing references it) and discards it. This means there's no point to compile the Q_IMPORT_PLUGIN containing files into static libraries. Change the generator expression we use for plugin propagation via associated modules to not compile and link the plugin initialization object file into a static library. Pick-to: 6.1 Task-number: QTBUG-80863 Change-Id: Ide32c0124c1e313c352a72280ce32ce9fbe8fff1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/widgets/tutorials/notepad/notepad.cpp')
0 files changed, 0 insertions, 0 deletions