diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake index cb92c0fbca6..8fb8d2f6a50 100644 --- a/cmake/QtProcessConfigureArgs.cmake +++ b/cmake/QtProcessConfigureArgs.cmake @@ -75,6 +75,12 @@ while(configure_args) elseif(arg STREQUAL "-qt-host-path") pop_path_argument() push("-DQT_HOST_PATH=${path}") + elseif(arg STREQUAL "-hostdatadir") + pop_path_argument() + if(NOT path MATCHES "(^|/)mkspecs$") + string(APPEND path "/mkspecs") + endif() + push("-DINSTALL_MKSPECSDIR=${path}") elseif(arg MATCHES "^-host.*dir") message(FATAL_ERROR "${arg} is not supported anymore.") elseif(arg STREQUAL "--") diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md index a1f5006d4d8..b5e528f1e28 100644 --- a/cmake/configure-cmake-mapping.md +++ b/cmake/configure-cmake-mapping.md @@ -9,6 +9,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349. | -hostprefix /where/ever | n/a | When cross-building Qt, we do not build for host system anymore | | -external-hostbindir /path/to/host/qt | -DQT_HOST_PATH=/path/to/host/qt | | | -bindir | -DINSTALL_BINDIR= | similar for -headerdir -libdir and so on | +| -hostdatadir | -DINSTALL_MKSPECSDIR= | | | -host*dir | n/a | | | -help | n/a | Handled by configure[.bat]. | | -verbose | | |