CMake: Map configure -hostdatadir to INSTALL_MKSPECSDIR
In the qmake-based build, the hostdatadir is the directory where "Data used by qmake" is located. In the CMake build the equivalent is INSTALL_MKSPECSDIR. Create the mapping accordingly. Fixes: QTBUG-88211 Change-Id: I9e3d1af24bc7f41333ef2269fced5ab3fcfa848d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
bd6784b579
commit
88efeb9e25
@ -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 "--")
|
||||
|
@ -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 <dir> | -DINSTALL_BINDIR=<dir> | similar for -headerdir -libdir and so on |
|
||||
| -hostdatadir <dir> | -DINSTALL_MKSPECSDIR=<dir> | |
|
||||
| -host*dir <dir> | n/a | |
|
||||
| -help | n/a | Handled by configure[.bat]. |
|
||||
| -verbose | | |
|
||||
|
Loading…
Reference in New Issue
Block a user