summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-04-26 12:49:33 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2024-04-29 18:36:53 +0200
commit9a6c9cc926f3b87f44f8e1db1272e1773af62cd4 (patch)
treefa1ebab3974024cdd4439d583de72358db064d8b /CMakeLists.txt
parentaf71c26c9e1cdecbc067e7e9fae82d76535c1d56 (diff)
CMake: Fix path of embedded .qm files in sub-directoriesHEADdev
Consider a project with sub-directories and a qt_add_translations call in a sub-directory. Before Qt 6.7.0, the path to the embedded .qm files was ":/i18n/foo_de.qm". With Qt 6.7.0, the path is ":/i18n/subdir/foo_de.qm". The reason is that we're called qt6_add_resources with the BASE argument "${CMAKE_CURRENT_BINARY_DIR}", and that is different if targets are automatically collected at the end of the project's directory scope. Fix this by passing the target's BINARY_DIR as BASE instead. Pick-to: 6.7 6.7.1 Fixes: QTBUG-124188 Change-Id: I6afd39c072e7dccc2ff5937c5cd312a119b68587 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions