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. Task-number: QTBUG-122420 Change-Id: Ibb829cc846ad6c470fe29e746ade42fccaa33a6f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 762c56d65bf2bf430621f6bed8f6d96ee333e718) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
2f50deafbf
commit
bfb6f4e86c
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user