CMake: Replace usage of WIN32 with CMAKE_HOST_WIN32 in qconfig.cpp
The workaround of adding a drive letter to
QT_CONFIGURE_PREFIX_PATH_STR should be done when running on any
Windows host, not only when targeting Windows.
Amends 59c3be7117
Pick-to: 6.1 6.2
Task-number: QTBUG-87580
Change-Id: Ic6ca50aa58a4a54fb483e90fe61a907fe86cb002
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
parent
3c148323c0
commit
6ef3d070a8
|
|
@ -71,7 +71,7 @@ function(qt_generate_qconfig_cpp in_file out_file)
|
|||
# C:/work/qt/install
|
||||
# so it includes a drive letter and forward slashes.
|
||||
set(QT_CONFIGURE_PREFIX_PATH_STR "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}")
|
||||
if(WIN32)
|
||||
if(CMAKE_HOST_WIN32)
|
||||
get_filename_component(
|
||||
QT_CONFIGURE_PREFIX_PATH_STR
|
||||
"${QT_CONFIGURE_PREFIX_PATH_STR}" REALPATH)
|
||||
|
|
|
|||
Loading…
Reference in New Issue