Skip to content

Commit

Permalink
Fix restoring of CMake environment in _qt_internal_execute_proccess_i…
Browse files Browse the repository at this point in the history
…n_qt_env

Use the correct variable name when restoring the environment.

Amends e388c1c

Task-number: QTBUG-128420
Pick-to: 6.5 6.8 6.9
Change-Id: I03ee3481a4638969edd75ce6ad233e8a94d5c563
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
semlanik committed Jan 2, 2025
1 parent e18b005 commit ccbec26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/QtPublicToolHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit ccbec26

Please sign in to comment.