mirror of https://github.com/microsoft/vcpkg.git
[vcpkg scripts] Fix env var backup for nmake (#48919)
This commit is contained in:
parent
be2e197ea5
commit
f051cc0be1
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue