|author||Alexandru Croitor <email@example.com>||2019-07-24 10:11:37 +0200|
|committer||Alexandru Croitor <firstname.lastname@example.org>||2019-07-24 09:01:24 +0000|
Fix exporting of Core tools
It should happen after qmake is built, to make sure that the target is made global, otherwise when cross-building qtbase in another build tree, the configuration phase will fail due to not finding qmake. qmake was accidentally exported before if you configured qtbase twice, because the tool was kept around in a cache variable, the second configuration actually recreated the CoreToolsConfig.cmake file to contain qmake as well. Change-Id: I6941e83f7d6bd03c56de120fba1d18e50c4af0e4 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <email@example.com>
Diffstat (limited to 'CMakeLists.txt')
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee24206bd7..938a6f98cb 100644
@@ -55,6 +55,9 @@ if (QT_WILL_BUILD_TOOLS)
+# Need to build qmake and other Core tools before exporting them.
# As long as we use the mkspecs (for qplatformdefs.h), we need to always
# install it, especially when cross-compiling.