diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-06-16 11:54:14 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-06-16 17:56:09 +0200 |
commit | e817ac3d68295fc0670ccede4df08bf1c7e627d2 (patch) | |
tree | a8ef35868080f64987913d3beb63d37dab5b57a2 /cmake | |
parent | 3110cbad6f697307ecaafa137d1d3e2be35dda60 (diff) |
Document that Q_INIT_RESOURCE is not necessary for CMake-based projects
Since commit e343affd634 we're creating object libraries for Qt
resources in static libraries when building Qt or a Qt-based project
with CMake. The purpose of this is to remove the need for calling
Q_INIT_RESOURCE in static libraries.
Add a note to the documentation and a changelog entry.
[ChangeLog][CMake] Calling Q_INIT_RESOURCE in static libraries is not
strictly necessary anymore for CMake-based projects. There, for each
resource, an object library is created which is linked into consuming
projects. This ensures that the linker does not discard the resource's
object file, and its initializer is called automatically.
Change-Id: I70de439f964dc7257a2255683eda4d434fa451d0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions