From 29e8c3a50bff884dc64d294707cae5cdec2ed097 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 5 Jan 2021 13:30:37 +0100 Subject: 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 Reviewed-by: Andrei Golubev --- src/qml/Qt6QmlMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/Qt6QmlMacros.cmake') 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") -- cgit v1.2.3