i see this in build_scripts/options.pu:356-363:
def _do_finalize(self):
# is_cross_compile must be set before checking for qtpaths/qmake
# because we DON'T want those to be found when cross compiling.
# Currently when cross compiling, qt-target-path MUST be used.
using_cmake_toolchain_file = False
cmake_toolchain_file = None
if OPTION["CMAKE_TOOLCHAIN_FILE"]:
self.is_cross_compile = True
using_cmake_toolchain_file = True
cmake_toolchain_file = OPTION["CMAKE_TOOLCHAIN_FILE"]
self.cmake_toolchain_file = cmake_toolchain_file
only place where this flag is set - and it is used everywhere later