diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-05 13:30:37 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-11 09:46:17 +0100 |
commit | 29e8c3a50bff884dc64d294707cae5cdec2ed097 (patch) | |
tree | 4cb5fee99870251ebecb610d77a7b2ccbf1617c3 /src/qml | |
parent | 9831a62899766be944921d575789fe332cf82d8d (diff) |
CMake: Encode target name into foreign_types.txt file
Otherwise you cannot have multiple targets in the same directory.
Change-Id: Ibf50a4e0752273965e4570527085787cf8060710
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/Qt6QmlMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake index 3935ca8cb1..b9cee43b17 100644 --- a/src/qml/Qt6QmlMacros.cmake +++ b/src/qml/Qt6QmlMacros.cmake @@ -772,7 +772,7 @@ function(qt6_qml_type_registration target) # Run a script to recursively evaluate all the metatypes.json files in order # to collect all foreign types. string(TOLOWER "${target}_qmltyperegistrations.cpp" type_registration_cpp_file_name) - set(foreign_types_file "${target_binary_dir}/qmltypes/foreign_types.txt") + set(foreign_types_file "${target_binary_dir}/qmltypes/${target}_foreign_types.txt") set(type_registration_cpp_file "${target_binary_dir}/${type_registration_cpp_file_name}") set(dependency_file_cpp "${target_binary_dir}/qmltypes/${type_registration_cpp_file_name}.d") |