--- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,6 +3,15 @@ # Generated from tools.pro. +# Red Bear: skip all tools during cross-compilation because the shared host +# bootstrap does not include every qtdeclarative tool binary (qmlprofiler, +# qmlpreview, qmlscene, etc). The libraries do not require these tools at +# configure time; only the tools/ subdirectory tries to find them as host +# binaries via qt_internal_add_tool(). +if(CMAKE_CROSSCOMPILING) + return() +endif() + add_subdirectory(qmldom) if(QT_FEATURE_commandlineparser) add_subdirectory(qmllint)