[vcpkg scripts] Fix env var backup for nmake (#48919)

This commit is contained in:
Kai Pastor 2025-12-17 15:36:21 +01:00 committed by GitHub
parent be2e197ea5
commit f051cc0be1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function(vcpkg_build_nmake)
set(project_subpath "")
endif()
vcpkg_backup_env_variables(VARS _CL_ LINK)
vcpkg_backup_env_variables(VARS _CL_ _LINK_)
cmake_path(NATIVE_PATH CURRENT_PACKAGES_DIR NORMALIZE install_dir_native)
foreach(build_type IN ITEMS debug release)
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL build_type)
@ -160,7 +160,7 @@ function(vcpkg_build_nmake)
)
endif()
vcpkg_restore_env_variables(VARS _CL_ LINK)
vcpkg_restore_env_variables(VARS _CL_ _LINK_)
endif()
endforeach()
endfunction()