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 59c3be711728ab0aa644bfdf50e91a1b020f95bb Pick-to: 6.1 6.2 Task-number: QTBUG-87580 Change-Id: Ic6ca50aa58a4a54fb483e90fe61a907fe86cb002 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
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…
x
Reference in New Issue
Block a user