summaryrefslogtreecommitdiffstats
path: root/dependencies.yaml
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-03-20 14:27:02 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2024-03-21 10:00:14 +0000
commit78cf65161c0603ebc40b95f67702a24287f0ce81 (patch)
tree4476ae2e856ef8381ee3281e0216ef94a59ff1e5 /dependencies.yaml
parentebc842743e0e421155c18b2861789c764671e355 (diff)
CMake: Fix discrepancy in qt_add_translations .qm output paths
When calling qt_add_translations with automatic target collection we 1. Predict .qm file paths to be in CMAKE_CURRENT_BINARY_DIR and return the paths in QM_FILES_OUTPUT_VARIABLE. 2. Defer the call of qt_add_translations to the end of the PROJECT_DIR scope. 3. When running the deferred call, generate .qm files in CMAKE_CURRENT_BINARY_DIR. The values of CMAKE_CURRENT_BINARY_DIR in steps 1 and 3 are different if the call to qt_add_translations is in a subdirectory. Fix this by passing the .qm output directory to the deferred call of qt_add_translations and qt_add_lrelease. Fixes: QTBUG-123405 Change-Id: If4a9cdc03ed4659f28ff70c7662f1125a1f59b55 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 5c3800b7ff94b36b2ca13fc23acfd9209ea4c50b) Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'dependencies.yaml')
0 files changed, 0 insertions, 0 deletions