diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-12-04 14:17:46 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-12-10 15:25:37 +0100 |
commit | 126c5c501a305ee43c5e51261421266f09ed3bb4 (patch) | |
tree | 8f83bdb99090439e5a133b087bf811e8f3c0012b /configure | |
parent | 928b51704a14d038f940759830579e82899ae8e5 (diff) |
CMake: Disable building Qt with qmake
Print an error message when configure is passed the -qmake option.
The only supported way to build Qt now is with CMake.
This means the CMakeLists.txt files are the source of truth now, and
pro2cmake will not have to be used anymore.
The .pro files can be removed at a later time.
The same is true for configure.cmake files. They are the authoritative
source, and the configure.json files will be removed at a later time.
Task-number: QTBUG-88741
Change-Id: Ia9de4c1411978b40b13e9b982977e7818164c984
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -920,6 +920,12 @@ else fi } +printQmakeBuildErrorAndExit() +{ + echo >&2 "ERROR: You cannot configure Qt 6 with qmake anymore. Please configure with -cmake instead." + exit 1 +} + checkTopLevelBuild "$@" parseCommandline "$@" handleHelp @@ -945,6 +951,7 @@ if [ "$BUILD_WITH_CMAKE" = "yes" ]; then cmake "-DOPTFILE=$optfilename" $top_level_arg -P "$relpath/cmake/QtProcessConfigureArgs.cmake" else + printQmakeBuildErrorAndExit findPerl findAwk findMake |