diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-20 10:03:59 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-23 09:54:52 +0100 |
commit | 16df037f9dcced9b3efc7457e50491ce0363e125 (patch) | |
tree | 79fa3662e5146594f43b5f3015c5a996a0f7a428 /cmake/QtBaseGlobalTargets.cmake | |
parent | 1f442c684fa68ff9ebbc8ffd1b92a6c1d5f87b83 (diff) |
CMake: Fix metatype file generation not to happen in the source dir
When building qtdeclarative in a non-prefix configuration,
metatypes.json files were created in the source dir. This happened
because the default arg_INSTALL_DIR value is relative in
qt6_generate_meta_types_json_file, and thus a file(TOUCH) with a
relative path creats it in the source dir.
The fix is to check if it's relative during a non-prefix build,
and make it absolute (relative to the install prefix, which is the
qtbase build dir).
Change-Id: Ie9abbd5d93a64e79184d77655d8d8399e894fde5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
0 files changed, 0 insertions, 0 deletions