From 39f96dc94fe8747e0ef1d72856cdd778d31b2a02 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 7 Jan 2021 11:02:53 +0200 Subject: CMake: add properties when tools are built Make sure all properties are added when cross-compiling the tools. Change-Id: Ifec0d2e2a1de2c3302ccf71ba897993d57bed205 Reviewed-by: Joerg Bornemann (cherry picked from commit 066945fbc4a633fec57ccf458a0534f6ea525478) Reviewed-by: Qt Cherry-pick Bot --- tools/qml/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qml/CMakeLists.txt b/tools/qml/CMakeLists.txt index 7c545ecb75..96d030074d 100644 --- a/tools/qml/CMakeLists.txt +++ b/tools/qml/CMakeLists.txt @@ -19,7 +19,7 @@ qt_internal_add_tool(${target_name} # special case begin # Don't set properties on a host tool when cross compiling, because it # is not being built. -if(CMAKE_CROSSCOMPILING) +if(CMAKE_CROSSCOMPILING AND NOT QT_BUILD_TOOLS_WHEN_CROSSCOMPILING) return() endif() -- cgit v1.2.3