Fix restoring of CMake environment in _qt_internal_execute_proccess_in_qt_env
Use the correct variable name when restoring the environment. Amends e388c1caeb1ccdb88b9a9801be9cd6328d8a7987 Task-number: QTBUG-128420 Pick-to: 6.5 Change-Id: I03ee3481a4638969edd75ce6ad233e8a94d5c563 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit ccbec262c220cbe990a68611e39dca9662b71777) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit bead73f2f3fa5a2c19db74c2dc0cc7b73c92e056)
This commit is contained in:
parent
b735ef7aa6
commit
6bad61c8ee
@ -139,7 +139,7 @@ macro(_qt_internal_execute_proccess_in_qt_env execute_process_args_var)
|
||||
# We avoid escaping issues this way.
|
||||
execute_process(${${execute_process_args_var}})
|
||||
if(CMAKE_HOST_WIN32)
|
||||
set(ENV{PATH} "${path_backup}")
|
||||
set(ENV{PATH} "${_qt_internal_execute_proccess_in_qt_env_path_backup}")
|
||||
unset(_qt_internal_execute_proccess_in_qt_env_path_backup)
|
||||
endif()
|
||||
endmacro()
|
||||
|
Loading…
x
Reference in New Issue
Block a user