summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2024-02-29 16:39:01 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2024-03-05 12:30:15 +0200
commit762c56d65bf2bf430621f6bed8f6d96ee333e718 (patch)
treee39f765a6888e8000db8f31c23f761097c069fd2 /cmake
parentb370e1b7f19464dd5303122b3e1e72addbadbf57 (diff)
CMake: add options to not generate target wrappers
The target wrappers for qmake and qtpaths do not work on Yocto builds and only create confusion when they are available in target. Add option to disable their generation. Pick-to: 6.7 Task-number: QTBUG-122420 Change-Id: Ibb829cc846ad6c470fe29e746ade42fccaa33a6f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtQmakeHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtQmakeHelpers.cmake b/cmake/QtQmakeHelpers.cmake
index 39e9dc816d..c618fa0510 100644
--- a/cmake/QtQmakeHelpers.cmake
+++ b/cmake/QtQmakeHelpers.cmake
@@ -80,7 +80,7 @@ endfunction()
# up the host qmake's properties for cross-compiling with this Qt
# build.
function(qt_generate_qmake_and_qtpaths_wrapper_for_target)
- if(NOT CMAKE_CROSSCOMPILING)
+ if(NOT CMAKE_CROSSCOMPILING OR QT_NO_GENERATE_QMAKE_WRAPPER_FOR_TARGET)
return()
endif()