summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-11-16 16:53:15 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-11-19 06:28:41 +0100
commit5533eeeb0110c00a9658d5d3ceba6f882bf9cea1 (patch)
tree7b14149886a398b2a32a2a40e95c4113c51a8794 /src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
parente0d709d8d3535a897de359eb9a0f33867b5ae040 (diff)
CMake: Refactor parts of qt_internal_walk_libs
Refactor the function in preparation of processing rcc object files. Introduce 2 new functions to get and set values in the memoization dictionary used by qt_internal_walk_libs. Modify qt_internal_add_target_aliases to assign the alias names it creates as properties on the target. Extract these aliases when available to assign memoized values not only for the initial library name, but also for its aliases. When recursively calling qt_internal_walk_libs, make sure to provide a unique out_var name based on the outer target name, and not just lib_libs. Otherwise the out_var values would be polluted from previous recursion runs. Make sure to check for -NOTFOUND in if() checks so that we reuse memoized values that are the empty string. Change-Id: I8fd8e2b0ae14d0ba8f502bc5a764d6e01095001a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-frames/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions